on:
push:
branches:
- - main
+ - master
paths:
- 'docs/wiki/**'
- '.github/workflows/wiki-sync.yaml'
env:
GH_TOKEN: ${{ github.token }}
run: |
- CURRENT_SHA=$(gh api repos/${GITHUB_REPOSITORY}/git/ref/heads/main --jq '.object.sha')
+ CURRENT_SHA=$(gh api repos/${GITHUB_REPOSITORY}/git/ref/heads/master --jq '.object.sha')
if [ "$CURRENT_SHA" != "$GITHUB_SHA" ]; then
echo "Skipping obsolete workflow."
echo "Current SHA: $CURRENT_SHA"
env:
GH_TOKEN: ${{ github.token }}
run: |
- CURRENT_SHA=$(gh api repos/${GITHUB_REPOSITORY}/git/ref/heads/main --jq '.object.sha')
+ CURRENT_SHA=$(gh api repos/${GITHUB_REPOSITORY}/git/ref/heads/master --jq '.object.sha')
if [ "$CURRENT_SHA" != "$GITHUB_SHA" ]; then
echo "Skipping obsolete workflow."
echo "Current SHA: $CURRENT_SHA"
git -C "wiki" config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git -C "wiki" commit -m "docs: sync wiki from ${GITHUB_SHA:0:12}"
- CURRENT_SHA=$(gh api repos/${GITHUB_REPOSITORY}/git/ref/heads/main --jq '.object.sha')
+ CURRENT_SHA=$(gh api repos/${GITHUB_REPOSITORY}/git/ref/heads/master --jq '.object.sha')
if [ "$CURRENT_SHA" != "$GITHUB_SHA" ]; then
echo "Skipping obsolete workflow."
echo "Current SHA: $CURRENT_SHA"
[image-security-img]: https://img.shields.io/badge/SBOM%20%2F%20Provenance-enabled-brightgreen?logo=security
[image-security-url]: https://github.com/xraver/network-manager
[last-commit-img]: https://img.shields.io/github/last-commit/xraver/network-manager
-[last-commit-url]: https://github.com/xraver/network-manager/commits/main
+[last-commit-url]: https://github.com/xraver/network-manager/commits/master
[check-status-img]: https://github.com/xraver/network-manager/actions/workflows/ci.yaml/badge.svg
[check-status-url]: https://github.com/xraver/network-manager/actions/workflows/ci.yaml
[buymecoffee-img]: https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg