Skip to content

Commit

Permalink
fixing badge
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Hernandez committed Oct 1, 2024
1 parent 41a7811 commit d675bc5
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 d675bc5

Please sign in to comment.