Skip to content

Commit

Permalink
fixes badge generation ci job
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Hernandez committed Sep 27, 2024
1 parent 2cf581d commit c754b07
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/update-badge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ name: Update RMM Tools Badge

on:
push:
branches:
- main
paths:
- 'yaml/**'
workflow_dispatch:

jobs:
update-badge:
Expand All @@ -21,9 +22,11 @@ jobs:
run: python bin/update_badge.py

- name: Commit and push if changed
env:
GITHUB_TOKEN: ${{ secrets.PUSH_TOKEN }}
run: |
git config --global user.email "action@github.com"
git config --global user.name "GitHub Action"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git add rmm-tools-count.json
git commit -m "Update RMM Tools count badge" || exit 0
git push
git push https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:${GITHUB_REF}

0 comments on commit c754b07

Please sign in to comment.