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
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
```
### Inputs
@@ -42,7 +43,7 @@ jobs:
| name | value | default | description |
| ---- | ----- | ------- | ----------- |
| 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. |
| tags | boolean | false | Determines if `--tags` is used. |
| directory | string | '.' | Directory to change to before pushing. |