From 829c8235e424b685b58d3cc92a22c22765356e94 Mon Sep 17 00:00:00 2001 From: wpalani Date: Sat, 13 Jul 2024 17:10:48 -0700 Subject: [PATCH] attempt to fix failing `WP Internationalization` gh workflow --- .github/workflows/wp-i18n.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/wp-i18n.yml b/.github/workflows/wp-i18n.yml index cf5bc9ad..d655a7dd 100644 --- a/.github/workflows/wp-i18n.yml +++ b/.github/workflows/wp-i18n.yml @@ -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 }}