Skip to content

Commit

Permalink
fixing badge (#28)
Browse files Browse the repository at this point in the history
Co-authored-by: Jose Hernandez <[email protected]>
  • Loading branch information
josehelps and Jose Hernandez authored Oct 1, 2024
1 parent fec6bd5 commit 747a4be
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/update-badge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ on:
push:
branches:
- main
paths:
- 'yaml/**'

jobs:
update-badge:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.PUSH_TOKEN }}

- name: Set up Python
uses: actions/setup-python@v2
Expand All @@ -25,8 +25,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.PUSH_TOKEN }}
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git config --global push.default simple
git add rmm-tools-count.json
git commit -m "Update RMM Tools count badge" || exit 0
git push https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:${GITHUB_REF}
git diff --quiet && git diff --staged --quiet || (git commit -m "Update RMM Tools count badge" && git pull --rebase origin main && git push https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:${GITHUB_REF})

0 comments on commit 747a4be

Please sign in to comment.