commit | 3c4ff2ea5b28398b173b9ca2489765b3fd39344f | [log] [tgz] |
---|---|---|
author | Honza Bittner <git@honzabittner.cz> | Thu Oct 10 09:43:44 2019 +0200 |
committer | GitHub <noreply@github.com> | Thu Oct 10 09:43:44 2019 +0200 |
tree | d042c7c7918bd3f7919d0dd84b91e2e956a9cb5d | |
parent | b23214486eef9ce5602b0c02f2d672b1e7d65371 [diff] | |
parent | 11c12b7fd568c63b0bbd4e867ece0f1283bf693a [diff] |
Merge pull request #7 from anarcher/master Add INPUT_REPOSITORY for another repository push
The GitHub Actions for pushing to GitHub repository local changes authorizing using GitHub token.
An example workflow to authenticate with GitHub Platform:
jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@master - name: Create local changes run: | ... - name: Commit files run: | git config --local user.email "action@github.com" git config --local user.name "GitHub Action" git commit -m "Add changes" -a - name: Push changes uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }}
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. |
force | boolean | false | Determines if force push is used. |
directory | string | ‘.’ | Directory to change to before pushing. |
repository | string | '' | Repository name. Default or empty repository name represents current github repository. If you want to push to other repository, you should make a personal access token and use it as the github_token input. |
The Dockerfile and associated scripts and documentation in this project are released under the MIT License.
GitHub are registered trademarks of GitHub, Inc. GitHub name used in this project are for identification purposes only. The project is not associated in any way with GitHub Inc. and is not an official solution of GitHub Inc. It was made available in order to facilitate the use of the site GitHub.