在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:ad-m/github-push-action开源软件地址:https://github.com/ad-m/github-push-action开源编程语言:JavaScript 77.7%开源软件介绍:GitHub Action for GitHub PushThe GitHub Actions for pushing to GitHub repository local changes authorizing using GitHub token. With ease:
UsageExample Workflow fileAn example workflow to authenticate with GitHub Platform: jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
- name: Create local changes
run: |
...
- name: Commit files
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "Add changes" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }} Inputs
TroubeshootingPlease be aware, if your job fails and the corresponding output log looks like the following error, update your used verson of the action to
LicenseThe Dockerfile and associated scripts and documentation in this project are released under the MIT License. No affiliation with GitHub Inc.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. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论