|
@@ -24,26 +24,27 @@ jobs:
|
|
|
- name: Install dependencies
|
|
- name: Install dependencies
|
|
|
run: npm ci
|
|
run: npm ci
|
|
|
|
|
|
|
|
- - name: Update contributors
|
|
|
|
|
- run: npm run update-contributors
|
|
|
|
|
|
|
+ - name: Update contributors and check for changes
|
|
|
|
|
+ run: |
|
|
|
|
|
+ npm run update-contributors
|
|
|
|
|
+ git diff --quiet README.md || echo "changes=true" >> $GITHUB_OUTPUT
|
|
|
|
|
+ id: check-changes
|
|
|
env:
|
|
env:
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
-
|
|
|
|
|
- - name: Check for changes
|
|
|
|
|
- id: check-changes
|
|
|
|
|
|
|
+
|
|
|
|
|
+ - name: Stage changes
|
|
|
|
|
+ if: steps.check-changes.outputs.changes == 'true'
|
|
|
run: |
|
|
run: |
|
|
|
- if [[ -n "$(git status --porcelain README.md)" ]]; then
|
|
|
|
|
- echo "changes=true" >> $GITHUB_OUTPUT
|
|
|
|
|
- else
|
|
|
|
|
- echo "No changes to README.md"
|
|
|
|
|
- fi
|
|
|
|
|
-
|
|
|
|
|
|
|
+ git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
|
|
|
+ git config --local user.name "github-actions[bot]"
|
|
|
|
|
+ git add README.md
|
|
|
|
|
+ git commit -m "docs: update contributors list [skip ci]"
|
|
|
|
|
+
|
|
|
- name: Create Pull Request
|
|
- name: Create Pull Request
|
|
|
if: steps.check-changes.outputs.changes == 'true'
|
|
if: steps.check-changes.outputs.changes == 'true'
|
|
|
uses: peter-evans/create-pull-request@v5
|
|
uses: peter-evans/create-pull-request@v5
|
|
|
with:
|
|
with:
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
- commit-message: "docs: update contributors list"
|
|
|
|
|
title: "Update contributors list"
|
|
title: "Update contributors list"
|
|
|
body: |
|
|
body: |
|
|
|
Automated update of contributors list in README.md
|
|
Automated update of contributors list in README.md
|