A free, self-hostable news aggregator…
GitHub Action: make fix-all (v5) (#8098)
Alexandre Alapetite458832cbb3eb
diff --git a/.github/workflows/commands.yml b/.github/workflows/commands.ymlindex 3d9fd18a4..4a70ad21e 100644--- a/.github/workflows/commands.yml+++ b/.github/workflows/commands.yml@@ -100,6 +100,8 @@ jobs:if: success()env:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ HEAD_REPO: ${{ fromJSON(steps.pr.outputs.result).repo.full_name }}+ HEAD_BRANCH: ${{ fromJSON(steps.pr.outputs.result).ref }}run: |git add -Aif git diff --cached --quiet; then@@ -111,15 +113,8 @@ jobs:git config user.name "github-actions[bot]"git config user.email "41898282+github-actions[bot]@users.noreply.github.com"- # Get PR info from the base repository- PR_JSON=$(gh pr view ${{ github.event.issue.number }} --repo ${{ github.repository }} --json headRepository,headRefName,maintainerCanModify)- HEAD_REPO=$(echo "$PR_JSON" | jq -r '.headRepository.nameWithOwner')- HEAD_BRANCH=$(echo "$PR_JSON" | jq -r '.headRefName')- CAN_MODIFY=$(echo "$PR_JSON" | jq -r '.maintainerCanModify')-echo "Head repo: $HEAD_REPO"echo "Head branch: $HEAD_BRANCH"- echo "Maintainer can modify: $CAN_MODIFY"# Create commitgit commit -m "chore: make fix-all"