Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ff8ca18c9f |
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@@ -10,12 +10,12 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@master
|
||||||
|
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@master
|
||||||
with:
|
with:
|
||||||
node-version: 12.x
|
node-version: 12.0.0
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install
|
run: npm install
|
||||||
@@ -24,7 +24,7 @@ jobs:
|
|||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
uses: EndBug/add-and-commit@v2
|
uses: EndBug/add-and-commit@v2.3.0
|
||||||
with:
|
with:
|
||||||
force: true
|
force: true
|
||||||
message: "[auto] Update compiled version"
|
message: "[auto] Update compiled version"
|
||||||
|
|||||||
40
README.md
40
README.md
@@ -15,7 +15,6 @@ Add a step like this to your workflow:
|
|||||||
with: # See more info about inputs below
|
with: # See more info about inputs below
|
||||||
author_name: Your Name
|
author_name: Your Name
|
||||||
author_email: mail@example.com
|
author_email: mail@example.com
|
||||||
cwd: "."
|
|
||||||
message: "Your commit message"
|
message: "Your commit message"
|
||||||
path: "."
|
path: "."
|
||||||
pattern: "*.js"
|
pattern: "*.js"
|
||||||
@@ -28,7 +27,6 @@ Add a step like this to your workflow:
|
|||||||
|
|
||||||
- `author_name` : the name of the user that will be displayed as the author of the commit, defaults to the author of the commit that triggered the run
|
- `author_name` : the name of the user that will be displayed as the author of the commit, defaults to the author of the commit that triggered the run
|
||||||
- `author_email` : the email of the user that will be displayed as the author of the commit, defaults to the author of the commit that triggered the run
|
- `author_email` : the email of the user that will be displayed as the author of the commit, defaults to the author of the commit that triggered the run
|
||||||
- `cwd` : the working directory in which your repository is located, defaults to `.`
|
|
||||||
- `message` : the message for the commit
|
- `message` : the message for the commit
|
||||||
- `path` : the path(s) to stage files from
|
- `path` : the path(s) to stage files from
|
||||||
- `pattern` : the pattern that matches file names
|
- `pattern` : the pattern that matches file names
|
||||||
@@ -58,9 +56,9 @@ This action only **adds** files so in order to commit a file deletion you need t
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
```
|
```
|
||||||
|
|
||||||
### Examples:
|
### Example:
|
||||||
|
|
||||||
Do you want to lint your JavaScript files, located in the `src` folder, with ESLint, so that fixable changes are done without your intervention? You can use a workflow like this:
|
You want to lint your JavaScript files, located in the `src` folder, with ESLint so that fixable changes are done without your intervention. You can use a workflow like this:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
name: Lint source code
|
name: Lint source code
|
||||||
@@ -72,7 +70,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
@@ -97,38 +95,6 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
```
|
```
|
||||||
|
|
||||||
If you need to run the action on a repository that is not located in [`$GITHUB_WORKSPACE`](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/using-environment-variables#default-environment-variables), you can use the `cwd` option: the action uses a `cd` normal command, so the path should follow bash standards.
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
name: Use a different repository directory
|
|
||||||
on: push
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
run:
|
|
||||||
name: Add a text file
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
# If you need to, you can checkout your repo to a different location
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
path: "./pathToRepo/"
|
|
||||||
|
|
||||||
# You can make whatever type of change to the repo...
|
|
||||||
- run: echo "123" > ./pathToRepo/file.txt
|
|
||||||
|
|
||||||
# ...and then use the action as you would normally do, but providing the path to the repo
|
|
||||||
- uses: EndBug/add-and-commit@v2
|
|
||||||
with:
|
|
||||||
message: "Add the very useful text file"
|
|
||||||
path: "."
|
|
||||||
pattern: "*.txt"
|
|
||||||
cwd: "./pathToRepo/"
|
|
||||||
force: true
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
```
|
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
This action is distributed under the MIT license, check the [license](LICENSE) for more info.
|
This action is distributed under the MIT license, check the [license](LICENSE) for more info.
|
||||||
|
|||||||
@@ -8,10 +8,6 @@ inputs:
|
|||||||
author_email:
|
author_email:
|
||||||
description: The email of the user that will be displayed as the author of the commit
|
description: The email of the user that will be displayed as the author of the commit
|
||||||
required: false
|
required: false
|
||||||
cwd:
|
|
||||||
description: The directory where your repository is located. You should use actions/checkout first to set it up
|
|
||||||
required: false
|
|
||||||
default: "."
|
|
||||||
force:
|
force:
|
||||||
description: Whether to use the force option on git add, in order to bypass eventual gitignores
|
description: Whether to use the force option on git add, in order to bypass eventual gitignores
|
||||||
required: false
|
required: false
|
||||||
|
|||||||
2
node_modules/.bin/shjs
generated
vendored
2
node_modules/.bin/shjs
generated
vendored
@@ -2,7 +2,7 @@
|
|||||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
case `uname` in
|
case `uname` in
|
||||||
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ -x "$basedir/node" ]; then
|
if [ -x "$basedir/node" ]; then
|
||||||
|
|||||||
22
node_modules/.bin/shjs.cmd
generated
vendored
22
node_modules/.bin/shjs.cmd
generated
vendored
@@ -1,17 +1,7 @@
|
|||||||
@ECHO off
|
@IF EXIST "%~dp0\node.exe" (
|
||||||
SETLOCAL
|
"%~dp0\node.exe" "%~dp0\..\shelljs\bin\shjs" %*
|
||||||
CALL :find_dp0
|
|
||||||
|
|
||||||
IF EXIST "%dp0%\node.exe" (
|
|
||||||
SET "_prog=%dp0%\node.exe"
|
|
||||||
) ELSE (
|
) ELSE (
|
||||||
SET "_prog=node"
|
@SETLOCAL
|
||||||
SET PATHEXT=%PATHEXT:;.JS;=;%
|
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
)
|
node "%~dp0\..\shelljs\bin\shjs" %*
|
||||||
|
)
|
||||||
"%_prog%" "%dp0%\..\shelljs\bin\shjs" %*
|
|
||||||
ENDLOCAL
|
|
||||||
EXIT /b %errorlevel%
|
|
||||||
:find_dp0
|
|
||||||
SET dp0=%~dp0
|
|
||||||
EXIT /b
|
|
||||||
18
node_modules/.bin/shjs.ps1
generated
vendored
18
node_modules/.bin/shjs.ps1
generated
vendored
@@ -1,18 +0,0 @@
|
|||||||
#!/usr/bin/env pwsh
|
|
||||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
|
||||||
|
|
||||||
$exe=""
|
|
||||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
|
||||||
# Fix case when both the Windows and Linux builds of Node
|
|
||||||
# are installed in the same directory
|
|
||||||
$exe=".exe"
|
|
||||||
}
|
|
||||||
$ret=0
|
|
||||||
if (Test-Path "$basedir/node$exe") {
|
|
||||||
& "$basedir/node$exe" "$basedir/../shelljs/bin/shjs" $args
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
} else {
|
|
||||||
& "node$exe" "$basedir/../shelljs/bin/shjs" $args
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
}
|
|
||||||
exit $ret
|
|
||||||
4
node_modules/@actions/core/package.json
generated
vendored
4
node_modules/@actions/core/package.json
generated
vendored
@@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"@actions/core@1.2.0",
|
"@actions/core@1.2.0",
|
||||||
"C:\\GitHub\\add-and-commit"
|
"c:\\EndBug\\GitHub\\add-and-commit"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "@actions/core@1.2.0",
|
"_from": "@actions/core@1.2.0",
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.0.tgz",
|
"_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.0.tgz",
|
||||||
"_spec": "1.2.0",
|
"_spec": "1.2.0",
|
||||||
"_where": "C:\\GitHub\\add-and-commit",
|
"_where": "c:\\EndBug\\GitHub\\add-and-commit",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/actions/toolkit/issues"
|
"url": "https://github.com/actions/toolkit/issues"
|
||||||
},
|
},
|
||||||
|
|||||||
4
node_modules/balanced-match/package.json
generated
vendored
4
node_modules/balanced-match/package.json
generated
vendored
@@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"balanced-match@1.0.0",
|
"balanced-match@1.0.0",
|
||||||
"C:\\GitHub\\add-and-commit"
|
"c:\\EndBug\\GitHub\\add-and-commit"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "balanced-match@1.0.0",
|
"_from": "balanced-match@1.0.0",
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
|
"_resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
|
||||||
"_spec": "1.0.0",
|
"_spec": "1.0.0",
|
||||||
"_where": "C:\\GitHub\\add-and-commit",
|
"_where": "c:\\EndBug\\GitHub\\add-and-commit",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Julian Gruber",
|
"name": "Julian Gruber",
|
||||||
"email": "mail@juliangruber.com",
|
"email": "mail@juliangruber.com",
|
||||||
|
|||||||
4
node_modules/brace-expansion/package.json
generated
vendored
4
node_modules/brace-expansion/package.json
generated
vendored
@@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"brace-expansion@1.1.11",
|
"brace-expansion@1.1.11",
|
||||||
"C:\\GitHub\\add-and-commit"
|
"c:\\EndBug\\GitHub\\add-and-commit"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "brace-expansion@1.1.11",
|
"_from": "brace-expansion@1.1.11",
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
|
"_resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
|
||||||
"_spec": "1.1.11",
|
"_spec": "1.1.11",
|
||||||
"_where": "C:\\GitHub\\add-and-commit",
|
"_where": "c:\\EndBug\\GitHub\\add-and-commit",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Julian Gruber",
|
"name": "Julian Gruber",
|
||||||
"email": "mail@juliangruber.com",
|
"email": "mail@juliangruber.com",
|
||||||
|
|||||||
4
node_modules/concat-map/package.json
generated
vendored
4
node_modules/concat-map/package.json
generated
vendored
@@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"concat-map@0.0.1",
|
"concat-map@0.0.1",
|
||||||
"C:\\GitHub\\add-and-commit"
|
"c:\\EndBug\\GitHub\\add-and-commit"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "concat-map@0.0.1",
|
"_from": "concat-map@0.0.1",
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
|
"_resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
|
||||||
"_spec": "0.0.1",
|
"_spec": "0.0.1",
|
||||||
"_where": "C:\\GitHub\\add-and-commit",
|
"_where": "c:\\EndBug\\GitHub\\add-and-commit",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "James Halliday",
|
"name": "James Halliday",
|
||||||
"email": "mail@substack.net",
|
"email": "mail@substack.net",
|
||||||
|
|||||||
4
node_modules/fs.realpath/package.json
generated
vendored
4
node_modules/fs.realpath/package.json
generated
vendored
@@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"fs.realpath@1.0.0",
|
"fs.realpath@1.0.0",
|
||||||
"C:\\GitHub\\add-and-commit"
|
"c:\\EndBug\\GitHub\\add-and-commit"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "fs.realpath@1.0.0",
|
"_from": "fs.realpath@1.0.0",
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
"_resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
||||||
"_spec": "1.0.0",
|
"_spec": "1.0.0",
|
||||||
"_where": "C:\\GitHub\\add-and-commit",
|
"_where": "c:\\EndBug\\GitHub\\add-and-commit",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Isaac Z. Schlueter",
|
"name": "Isaac Z. Schlueter",
|
||||||
"email": "i@izs.me",
|
"email": "i@izs.me",
|
||||||
|
|||||||
4
node_modules/glob/package.json
generated
vendored
4
node_modules/glob/package.json
generated
vendored
@@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"glob@7.1.4",
|
"glob@7.1.4",
|
||||||
"C:\\GitHub\\add-and-commit"
|
"c:\\EndBug\\GitHub\\add-and-commit"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "glob@7.1.4",
|
"_from": "glob@7.1.4",
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz",
|
"_resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz",
|
||||||
"_spec": "7.1.4",
|
"_spec": "7.1.4",
|
||||||
"_where": "C:\\GitHub\\add-and-commit",
|
"_where": "c:\\EndBug\\GitHub\\add-and-commit",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Isaac Z. Schlueter",
|
"name": "Isaac Z. Schlueter",
|
||||||
"email": "i@izs.me",
|
"email": "i@izs.me",
|
||||||
|
|||||||
4
node_modules/inflight/package.json
generated
vendored
4
node_modules/inflight/package.json
generated
vendored
@@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"inflight@1.0.6",
|
"inflight@1.0.6",
|
||||||
"C:\\GitHub\\add-and-commit"
|
"c:\\EndBug\\GitHub\\add-and-commit"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "inflight@1.0.6",
|
"_from": "inflight@1.0.6",
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
|
"_resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
|
||||||
"_spec": "1.0.6",
|
"_spec": "1.0.6",
|
||||||
"_where": "C:\\GitHub\\add-and-commit",
|
"_where": "c:\\EndBug\\GitHub\\add-and-commit",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Isaac Z. Schlueter",
|
"name": "Isaac Z. Schlueter",
|
||||||
"email": "i@izs.me",
|
"email": "i@izs.me",
|
||||||
|
|||||||
4
node_modules/inherits/package.json
generated
vendored
4
node_modules/inherits/package.json
generated
vendored
@@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"inherits@2.0.4",
|
"inherits@2.0.4",
|
||||||
"C:\\GitHub\\add-and-commit"
|
"c:\\EndBug\\GitHub\\add-and-commit"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "inherits@2.0.4",
|
"_from": "inherits@2.0.4",
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
"_resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
||||||
"_spec": "2.0.4",
|
"_spec": "2.0.4",
|
||||||
"_where": "C:\\GitHub\\add-and-commit",
|
"_where": "c:\\EndBug\\GitHub\\add-and-commit",
|
||||||
"browser": "./inherits_browser.js",
|
"browser": "./inherits_browser.js",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/isaacs/inherits/issues"
|
"url": "https://github.com/isaacs/inherits/issues"
|
||||||
|
|||||||
4
node_modules/interpret/package.json
generated
vendored
4
node_modules/interpret/package.json
generated
vendored
@@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"interpret@1.2.0",
|
"interpret@1.2.0",
|
||||||
"C:\\GitHub\\add-and-commit"
|
"c:\\EndBug\\GitHub\\add-and-commit"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "interpret@1.2.0",
|
"_from": "interpret@1.2.0",
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/interpret/-/interpret-1.2.0.tgz",
|
"_resolved": "https://registry.npmjs.org/interpret/-/interpret-1.2.0.tgz",
|
||||||
"_spec": "1.2.0",
|
"_spec": "1.2.0",
|
||||||
"_where": "C:\\GitHub\\add-and-commit",
|
"_where": "c:\\EndBug\\GitHub\\add-and-commit",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Gulp Team",
|
"name": "Gulp Team",
|
||||||
"email": "team@gulpjs.com",
|
"email": "team@gulpjs.com",
|
||||||
|
|||||||
4
node_modules/minimatch/package.json
generated
vendored
4
node_modules/minimatch/package.json
generated
vendored
@@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"minimatch@3.0.4",
|
"minimatch@3.0.4",
|
||||||
"C:\\GitHub\\add-and-commit"
|
"c:\\EndBug\\GitHub\\add-and-commit"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "minimatch@3.0.4",
|
"_from": "minimatch@3.0.4",
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
|
"_resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
|
||||||
"_spec": "3.0.4",
|
"_spec": "3.0.4",
|
||||||
"_where": "C:\\GitHub\\add-and-commit",
|
"_where": "c:\\EndBug\\GitHub\\add-and-commit",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Isaac Z. Schlueter",
|
"name": "Isaac Z. Schlueter",
|
||||||
"email": "i@izs.me",
|
"email": "i@izs.me",
|
||||||
|
|||||||
4
node_modules/once/package.json
generated
vendored
4
node_modules/once/package.json
generated
vendored
@@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"once@1.4.0",
|
"once@1.4.0",
|
||||||
"C:\\GitHub\\add-and-commit"
|
"c:\\EndBug\\GitHub\\add-and-commit"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "once@1.4.0",
|
"_from": "once@1.4.0",
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
|
"_resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
|
||||||
"_spec": "1.4.0",
|
"_spec": "1.4.0",
|
||||||
"_where": "C:\\GitHub\\add-and-commit",
|
"_where": "c:\\EndBug\\GitHub\\add-and-commit",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Isaac Z. Schlueter",
|
"name": "Isaac Z. Schlueter",
|
||||||
"email": "i@izs.me",
|
"email": "i@izs.me",
|
||||||
|
|||||||
4
node_modules/path-is-absolute/package.json
generated
vendored
4
node_modules/path-is-absolute/package.json
generated
vendored
@@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"path-is-absolute@1.0.1",
|
"path-is-absolute@1.0.1",
|
||||||
"C:\\GitHub\\add-and-commit"
|
"c:\\EndBug\\GitHub\\add-and-commit"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "path-is-absolute@1.0.1",
|
"_from": "path-is-absolute@1.0.1",
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
|
"_resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
|
||||||
"_spec": "1.0.1",
|
"_spec": "1.0.1",
|
||||||
"_where": "C:\\GitHub\\add-and-commit",
|
"_where": "c:\\EndBug\\GitHub\\add-and-commit",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Sindre Sorhus",
|
"name": "Sindre Sorhus",
|
||||||
"email": "sindresorhus@gmail.com",
|
"email": "sindresorhus@gmail.com",
|
||||||
|
|||||||
4
node_modules/path-parse/package.json
generated
vendored
4
node_modules/path-parse/package.json
generated
vendored
@@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"path-parse@1.0.6",
|
"path-parse@1.0.6",
|
||||||
"C:\\GitHub\\add-and-commit"
|
"c:\\EndBug\\GitHub\\add-and-commit"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "path-parse@1.0.6",
|
"_from": "path-parse@1.0.6",
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz",
|
"_resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz",
|
||||||
"_spec": "1.0.6",
|
"_spec": "1.0.6",
|
||||||
"_where": "C:\\GitHub\\add-and-commit",
|
"_where": "c:\\EndBug\\GitHub\\add-and-commit",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Javier Blanco",
|
"name": "Javier Blanco",
|
||||||
"email": "http://jbgutierrez.info"
|
"email": "http://jbgutierrez.info"
|
||||||
|
|||||||
4
node_modules/rechoir/package.json
generated
vendored
4
node_modules/rechoir/package.json
generated
vendored
@@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"rechoir@0.6.2",
|
"rechoir@0.6.2",
|
||||||
"C:\\GitHub\\add-and-commit"
|
"c:\\EndBug\\GitHub\\add-and-commit"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "rechoir@0.6.2",
|
"_from": "rechoir@0.6.2",
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz",
|
"_resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz",
|
||||||
"_spec": "0.6.2",
|
"_spec": "0.6.2",
|
||||||
"_where": "C:\\GitHub\\add-and-commit",
|
"_where": "c:\\EndBug\\GitHub\\add-and-commit",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Tyler Kellen",
|
"name": "Tyler Kellen",
|
||||||
"url": "http://goingslowly.com/"
|
"url": "http://goingslowly.com/"
|
||||||
|
|||||||
4
node_modules/resolve/package.json
generated
vendored
4
node_modules/resolve/package.json
generated
vendored
@@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"resolve@1.13.1",
|
"resolve@1.13.1",
|
||||||
"C:\\GitHub\\add-and-commit"
|
"c:\\EndBug\\GitHub\\add-and-commit"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "resolve@1.13.1",
|
"_from": "resolve@1.13.1",
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/resolve/-/resolve-1.13.1.tgz",
|
"_resolved": "https://registry.npmjs.org/resolve/-/resolve-1.13.1.tgz",
|
||||||
"_spec": "1.13.1",
|
"_spec": "1.13.1",
|
||||||
"_where": "C:\\GitHub\\add-and-commit",
|
"_where": "c:\\EndBug\\GitHub\\add-and-commit",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "James Halliday",
|
"name": "James Halliday",
|
||||||
"email": "mail@substack.net",
|
"email": "mail@substack.net",
|
||||||
|
|||||||
6
node_modules/shelljs/package.json
generated
vendored
6
node_modules/shelljs/package.json
generated
vendored
@@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"shelljs@0.8.3",
|
"shelljs@0.8.3",
|
||||||
"C:\\GitHub\\add-and-commit"
|
"c:\\EndBug\\GitHub\\add-and-commit"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "shelljs@0.8.3",
|
"_from": "shelljs@0.8.3",
|
||||||
@@ -26,13 +26,13 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.3.tgz",
|
"_resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.3.tgz",
|
||||||
"_spec": "0.8.3",
|
"_spec": "0.8.3",
|
||||||
"_where": "C:\\GitHub\\add-and-commit",
|
"_where": "c:\\EndBug\\GitHub\\add-and-commit",
|
||||||
"ava": {
|
"ava": {
|
||||||
"serial": true,
|
"serial": true,
|
||||||
"powerAssert": false
|
"powerAssert": false
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"shjs": "bin/shjs"
|
"shjs": "./bin/shjs"
|
||||||
},
|
},
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/shelljs/shelljs/issues"
|
"url": "https://github.com/shelljs/shelljs/issues"
|
||||||
|
|||||||
4
node_modules/wrappy/package.json
generated
vendored
4
node_modules/wrappy/package.json
generated
vendored
@@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"wrappy@1.0.2",
|
"wrappy@1.0.2",
|
||||||
"C:\\GitHub\\add-and-commit"
|
"c:\\EndBug\\GitHub\\add-and-commit"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "wrappy@1.0.2",
|
"_from": "wrappy@1.0.2",
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
|
"_resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
|
||||||
"_spec": "1.0.2",
|
"_spec": "1.0.2",
|
||||||
"_where": "C:\\GitHub\\add-and-commit",
|
"_where": "c:\\EndBug\\GitHub\\add-and-commit",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Isaac Z. Schlueter",
|
"name": "Isaac Z. Schlueter",
|
||||||
"email": "i@izs.me",
|
"email": "i@izs.me",
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
cd $INPUT_CWD
|
|
||||||
echo "Running in $PWD."
|
|
||||||
|
|
||||||
# Set up .netrc file with GitHub credentials
|
# Set up .netrc file with GitHub credentials
|
||||||
git_setup() {
|
git_setup() {
|
||||||
cat <<- EOF > $HOME/.netrc
|
cat <<- EOF > $HOME/.netrc
|
||||||
@@ -51,9 +48,6 @@ then
|
|||||||
echo "Switching branch..."
|
echo "Switching branch..."
|
||||||
git checkout "${GITHUB_REF:11}"
|
git checkout "${GITHUB_REF:11}"
|
||||||
|
|
||||||
echo "Pulling from remote..."
|
|
||||||
git fetch && git pull
|
|
||||||
|
|
||||||
echo "Adding files..."
|
echo "Adding files..."
|
||||||
add
|
add
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user