Skip to content

Commit

Permalink
fix(workflows/update-mdn-urls): pass head_ref via env variable (#25054)
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner authored Nov 20, 2024
1 parent 89f508d commit 330ca44
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/update-mdn-urls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ jobs:
run: npm ci

- name: Update
env:
REF: ${{ github.head_ref }}
run: |
npm run lint:fix -- --only=mdn_urls
if git diff --exit-code; then
echo "No changes."
else
git commit -m 'chore: fix mdn urls' .
git push origin ${{ github.head_ref }}
git push origin "$REF"
fi

0 comments on commit 330ca44

Please sign in to comment.