mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-21 00:47:18 +08:00
oops
This commit is contained in:
parent
9bbe04799f
commit
a4809f9e9f
1 changed files with 4 additions and 2 deletions
6
.github/workflows/dist.yml
vendored
6
.github/workflows/dist.yml
vendored
|
|
@ -45,12 +45,14 @@ jobs:
|
|||
done
|
||||
done
|
||||
|
||||
rm _data/rules.json
|
||||
|
||||
# https://peterevans.dev/posts/github-actions-how-to-automate-code-formatting-in-pull-requests/
|
||||
- name: Check for modified files
|
||||
id: git-check
|
||||
run: echo ::set-output name=modified::$(if git diff-index --quiet HEAD --; then echo "false"; else echo "true"; fi)
|
||||
run: echo ::set-output name=modified::$(git status -s --porcelain | wc -l | awk '{$1=$1};1')
|
||||
- name: Push changes
|
||||
if: steps.git-check.outputs.modified == 'true'
|
||||
if: steps.git-check.outputs.modified != '0'
|
||||
run: |
|
||||
git config --global user.name 'Samuel Berthe'
|
||||
git config --global user.email 'samuel-berthe@users.noreply.github.com'
|
||||
|
|
|
|||
Loading…
Reference in a new issue