Skip to content

Commit

Permalink
attempt to fix failing WP Internationalization gh workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
wpalani committed Jul 14, 2024
1 parent 8520874 commit 829c823
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/wp-i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,8 @@ jobs:
git commit -m "WordPress i18n triggered by commit ${{ github.sha }}"
git status
- name: Extract PR source branch
if: steps.changes.outcome == 'failure'
id: extract_branch
run: echo "PR_BRANCH=$(jq -r .pull_request.head.ref < $GITHUB_EVENT_PATH)" >> $GITHUB_ENV

- name: Push changes
if: steps.changes.outcome == 'failure'
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ env.PR_BRANCH }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: git push origin HEAD:${{ github.ref }}

0 comments on commit 829c823

Please sign in to comment.