在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:pkg-src/github-action-git-bash开源软件地址:https://github.com/pkg-src/github-action-git-bash开源编程语言:Shell 69.3%开源软件介绍:github-action-git-bashGitHub Action to run a command or script in a Git-ready environment. Possible use cases include push mirroring, committing and pushing changes, merging branches, or creating tags from a CI pipeline. Secrets
Variables
Usage exampleworkflow "On push" {
on = "push"
resolves = ["Update mirror"]
}
action "Update mirror" {
uses = "fnkr/github-action-git-bash@v1"
secrets = ["GITHUB_TOKEN", "SSH_KEY"]
args = ["bash", "-c", "{ [ \"$(git rev-parse --abbrev-ref HEAD)\" = \"master\" ] || exit 78; } && rm -rf .github && git add -A .github && git commit -m \"Remove .github\" && git remote set-url origin [email protected]:GITHUB/PROJECT.git && git push --force origin master"]
} |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论