add cacompatibility for gh latest main branch (#66)

This commit is contained in:
Yuxiaoy1
2020-10-14 05:46:47 +08:00
committed by GitHub
parent 40bf560936
commit b007e7b818
2 changed files with 2 additions and 2 deletions

View File

@@ -35,6 +35,7 @@ jobs:
uses: ad-m/github-push-action@master uses: ad-m/github-push-action@master
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
``` ```
### Inputs ### Inputs
@@ -42,7 +43,7 @@ jobs:
| name | value | default | description | | name | value | default | description |
| ---- | ----- | ------- | ----------- | | ---- | ----- | ------- | ----------- |
| github_token | string | | Token for the repo. Can be passed in using `${{ secrets.GITHUB_TOKEN }}`. | | github_token | string | | Token for the repo. Can be passed in using `${{ secrets.GITHUB_TOKEN }}`. |
| branch | string | 'master' | Destination branch to push changes. | | branch | string | | Destination branch to push changes. Can be passed in using `${{ github.ref }}`. |
| force | boolean | false | Determines if force push is used. | | force | boolean | false | Determines if force push is used. |
| tags | boolean | false | Determines if `--tags` is used. | | tags | boolean | false | Determines if `--tags` is used. |
| directory | string | '.' | Directory to change to before pushing. | | directory | string | '.' | Directory to change to before pushing. |

View File

@@ -1,7 +1,6 @@
#!/bin/sh #!/bin/sh
set -e set -e
INPUT_BRANCH=${INPUT_BRANCH:-master}
INPUT_FORCE=${INPUT_FORCE:-false} INPUT_FORCE=${INPUT_FORCE:-false}
INPUT_TAGS=${INPUT_TAGS:-false} INPUT_TAGS=${INPUT_TAGS:-false}
INPUT_DIRECTORY=${INPUT_DIRECTORY:-'.'} INPUT_DIRECTORY=${INPUT_DIRECTORY:-'.'}