We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed6e904 commit 915a012Copy full SHA for 915a012
1 file changed
.github/workflows/update-dependents.yml
@@ -13,7 +13,9 @@ jobs:
13
runs-on: ubuntu-latest
14
steps:
15
- name: Checkout repository
16
- uses: actions/checkout@v4
+ uses: actions/checkout@v5
17
+ with:
18
+ ref: develop # master is protected; commit docs to develop and let it flow to master via the normal merge
19
20
- name: Update dependents info
21
uses: nvuillam/github-dependents-info@v3.2.0
@@ -31,5 +33,9 @@ jobs:
31
33
git config --local user.email "action@github.com"
32
34
git config --local user.name "GitHub Action"
35
git add README.md
- git diff --quiet && git diff --staged --quiet || git commit -m "docs: update dependents info"
- git push
36
+ if git diff --staged --quiet; then
37
+ echo "No dependents changes to commit."
38
+ else
39
+ git commit -m "docs: update dependents info"
40
+ git push origin HEAD:develop
41
+ fi
0 commit comments