You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-12Lines changed: 3 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,16 +59,11 @@ Add a step like this to your workflow:
59
59
# Default: ''
60
60
tag: 'v1.0.0 --force'
61
61
62
-
env:
63
-
#This is necessary in order to push a commit to the repo
64
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}# Leave this line unchanged
62
+
# Token to use for pushing the commit. The default value won't trigger any workflows, you need to use a Personal Access Token for that.
63
+
#Default: secrets.GITHUB_TOKEN
64
+
token: ${{ secrets.GITHUB_TOKEN }}
65
65
```
66
66
67
-
### Environment variables:
68
-
69
-
The only `env` variable required is the token for the action to run: GitHub generates one automatically, but you need to pass it through `env` to make it available to actions. You can find more about `GITHUB_TOKEN` [here](https://help.github.com/en/articles/virtual-environments-for-github-actions#github_token-secret).
70
-
That said, you can just copy the example line and not worry about it. If you do want to use a different token you can pass that in, but I wouldn't see any possible advantage in doing so.
71
-
72
67
### Adding files:
73
68
74
69
The action adds files using a regular `git add` command, so you can put every kind of argument in the `add` option. For example, if you want to force-add a file: `./path/to/file.txt --force`.
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.
0 commit comments