Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Aug 6, 2024
1 parent 5ddd720 commit dd8b4de
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/credit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on: # yamllint disable-line rule:truthy
- main

permissions:
contents: write
pull-requests: write

jobs:
update_credit:
Expand All @@ -25,8 +25,13 @@ jobs:
- run: GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} python tools/dev/update_credit_json.py
- run: python tools/dev/update_credit_rst.py
- run: git add -f doc/sphinxext/prs/*.json
- run: echo "porcelain=$(git status --porcelain)" | tee $GITHUB_OUTPUT
- run: |
git status --porcelain
if [[ $(git status --porcelain) ]]; then
echo "dirty=true" >> $GITHUB_OUTPUT
fi
id: status
- run: |
git commit -am "MAINT: Update code credit"
gh pr create -B main -H credit --title "MAINT: Update code credit" --body "Created by ${{ github.workflow.file }}" --label "no-changelog-entry-needed"
if: steps.status.outputs.porcelain != ''
if: steps.status.outputs.dirty == 'true'

0 comments on commit dd8b4de

Please sign in to comment.