Skip to content

Commit 49fa936

Browse files
committed
init
0 parents commit 49fa936

File tree

4 files changed

+349
-0
lines changed

4 files changed

+349
-0
lines changed

.gitignore

Lines changed: 292 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,292 @@
1+
# Created by https://www.toptal.com/developers/gitignore/api/node,yarn,sass,jekyll,linux,macos,windows,sublimetext,vim,visualstudiocode
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=node,yarn,sass,jekyll,linux,macos,windows,sublimetext,vim,visualstudiocode
3+
4+
### Jekyll ###
5+
_site/
6+
.sass-cache/
7+
.jekyll-cache/
8+
.jekyll-metadata
9+
10+
### Linux ###
11+
*~
12+
13+
# temporary files which can be created if a process still has a handle open of a deleted file
14+
.fuse_hidden*
15+
16+
# KDE directory preferences
17+
.directory
18+
19+
# Linux trash folder which might appear on any partition or disk
20+
.Trash-*
21+
22+
# .nfs files are created when an open file is removed but is still being accessed
23+
.nfs*
24+
25+
### macOS ###
26+
# General
27+
.DS_Store
28+
.AppleDouble
29+
.LSOverride
30+
31+
# Icon must end with two \r
32+
Icon
33+
34+
35+
# Thumbnails
36+
._*
37+
38+
# Files that might appear in the root of a volume
39+
.DocumentRevisions-V100
40+
.fseventsd
41+
.Spotlight-V100
42+
.TemporaryItems
43+
.Trashes
44+
.VolumeIcon.icns
45+
.com.apple.timemachine.donotpresent
46+
47+
# Directories potentially created on remote AFP share
48+
.AppleDB
49+
.AppleDesktop
50+
Network Trash Folder
51+
Temporary Items
52+
.apdisk
53+
54+
### Node ###
55+
# Logs
56+
logs
57+
*.log
58+
npm-debug.log*
59+
yarn-debug.log*
60+
yarn-error.log*
61+
lerna-debug.log*
62+
63+
# Diagnostic reports (https://nodejs.org/api/report.html)
64+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
65+
66+
# Runtime data
67+
pids
68+
*.pid
69+
*.seed
70+
*.pid.lock
71+
72+
# Directory for instrumented libs generated by jscoverage/JSCover
73+
lib-cov
74+
75+
# Coverage directory used by tools like istanbul
76+
coverage
77+
*.lcov
78+
79+
# nyc test coverage
80+
.nyc_output
81+
82+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
83+
.grunt
84+
85+
# Bower dependency directory (https://bower.io/)
86+
bower_components
87+
88+
# node-waf configuration
89+
.lock-wscript
90+
91+
# Compiled binary addons (https://nodejs.org/api/addons.html)
92+
build/Release
93+
94+
# Dependency directories
95+
node_modules/
96+
jspm_packages/
97+
98+
# TypeScript v1 declaration files
99+
typings/
100+
101+
# TypeScript cache
102+
*.tsbuildinfo
103+
104+
# Optional npm cache directory
105+
.npm
106+
107+
# Optional eslint cache
108+
.eslintcache
109+
110+
# Optional stylelint cache
111+
.stylelintcache
112+
113+
# Microbundle cache
114+
.rpt2_cache/
115+
.rts2_cache_cjs/
116+
.rts2_cache_es/
117+
.rts2_cache_umd/
118+
119+
# Optional REPL history
120+
.node_repl_history
121+
122+
# Output of 'npm pack'
123+
*.tgz
124+
125+
# Yarn Integrity file
126+
.yarn-integrity
127+
128+
# dotenv environment variables file
129+
.env
130+
.env.test
131+
.env*.local
132+
133+
# parcel-bundler cache (https://parceljs.org/)
134+
.cache
135+
.parcel-cache
136+
137+
# Next.js build output
138+
.next
139+
140+
# Nuxt.js build / generate output
141+
.nuxt
142+
dist
143+
144+
# Storybook build outputs
145+
.out
146+
.storybook-out
147+
storybook-static
148+
149+
# rollup.js default build output
150+
dist/
151+
152+
# Gatsby files
153+
.cache/
154+
# Comment in the public line in if your project uses Gatsby and not Next.js
155+
# https://nextjs.org/blog/next-9-1#public-directory-support
156+
# public
157+
158+
# vuepress build output
159+
.vuepress/dist
160+
161+
# Serverless directories
162+
.serverless/
163+
164+
# FuseBox cache
165+
.fusebox/
166+
167+
# DynamoDB Local files
168+
.dynamodb/
169+
170+
# TernJS port file
171+
.tern-port
172+
173+
# Stores VSCode versions used for testing VSCode extensions
174+
.vscode-test
175+
176+
# Temporary folders
177+
tmp/
178+
temp/
179+
180+
### Sass ###
181+
*.css.map
182+
*.sass.map
183+
*.scss.map
184+
185+
### SublimeText ###
186+
# Cache files for Sublime Text
187+
*.tmlanguage.cache
188+
*.tmPreferences.cache
189+
*.stTheme.cache
190+
191+
# Workspace files are user-specific
192+
*.sublime-workspace
193+
194+
# Project files should be checked into the repository, unless a significant
195+
# proportion of contributors will probably not be using Sublime Text
196+
# *.sublime-project
197+
198+
# SFTP configuration file
199+
sftp-config.json
200+
201+
# Package control specific files
202+
Package Control.last-run
203+
Package Control.ca-list
204+
Package Control.ca-bundle
205+
Package Control.system-ca-bundle
206+
Package Control.cache/
207+
Package Control.ca-certs/
208+
Package Control.merged-ca-bundle
209+
Package Control.user-ca-bundle
210+
oscrypto-ca-bundle.crt
211+
bh_unicode_properties.cache
212+
213+
# Sublime-github package stores a github token in this file
214+
# https://packagecontrol.io/packages/sublime-github
215+
GitHub.sublime-settings
216+
217+
### Vim ###
218+
# Swap
219+
[._]*.s[a-v][a-z]
220+
!*.svg # comment out if you don't need vector files
221+
[._]*.sw[a-p]
222+
[._]s[a-rt-v][a-z]
223+
[._]ss[a-gi-z]
224+
[._]sw[a-p]
225+
226+
# Session
227+
Session.vim
228+
Sessionx.vim
229+
230+
# Temporary
231+
.netrwhist
232+
# Auto-generated tag files
233+
tags
234+
# Persistent undo
235+
[._]*.un~
236+
237+
### VisualStudioCode ###
238+
.vscode/*
239+
!.vscode/settings.json
240+
!.vscode/tasks.json
241+
!.vscode/launch.json
242+
!.vscode/extensions.json
243+
*.code-workspace
244+
245+
### VisualStudioCode Patch ###
246+
# Ignore all local history of files
247+
.history
248+
.ionide
249+
250+
### Windows ###
251+
# Windows thumbnail cache files
252+
Thumbs.db
253+
Thumbs.db:encryptable
254+
ehthumbs.db
255+
ehthumbs_vista.db
256+
257+
# Dump file
258+
*.stackdump
259+
260+
# Folder config file
261+
[Dd]esktop.ini
262+
263+
# Recycle Bin used on file shares
264+
$RECYCLE.BIN/
265+
266+
# Windows Installer files
267+
*.cab
268+
*.msi
269+
*.msix
270+
*.msm
271+
*.msp
272+
273+
# Windows shortcuts
274+
*.lnk
275+
276+
### yarn ###
277+
# https://yarnpkg.com/advanced/qa#which-files-should-be-gitignored
278+
279+
.yarn/*
280+
!.yarn/releases
281+
!.yarn/plugins
282+
!.yarn/sdks
283+
!.yarn/versions
284+
285+
# if you are NOT using Zero-installs, then:
286+
# comment the following lines
287+
!.yarn/cache
288+
289+
# and uncomment the following lines
290+
# .pnp.*
291+
292+
# End of https://www.toptal.com/developers/gitignore/api/node,yarn,sass,jekyll,linux,macos,windows,sublimetext,vim,visualstudiocode

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) Ravindra Marella
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
This action sets git user as `github-actions[bot]`.
2+
3+
```sh
4+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
5+
git config user.name "github-actions[bot]"
6+
```
7+
8+
This allows committing changes inside a workflow run.
9+
10+
## Usage
11+
12+
```yaml
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: git-actions/set-user@v1
16+
- run: |
17+
# Make changes
18+
git commit -am 'Add changes'
19+
git push
20+
```
21+
22+
## License
23+
24+
[MIT](LICENSE)

action.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Set Git User
2+
description: Set git user as `github-actions[bot]`
3+
runs:
4+
using: composite
5+
steps:
6+
- run: |
7+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
8+
git config user.name "github-actions[bot]"
9+
shell: bash
10+
branding:
11+
icon: user
12+
color: gray-dark

0 commit comments

Comments
 (0)