Skip to content

Commit

Permalink
Merge branch 'main' into test-autofix-4
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi authored Jan 14, 2025
2 parents 0992b90 + 258d996 commit fe8ea67
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/autofix-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ on:
types:
- completed
permissions:
contents: write
contents: read
actions: read
checks: write
jobs:
report:
runs-on: ubuntu-latest
env:
REPO_DEPLOY_KEY: ${{ secrets.REPO_DEPLOY_KEY }}
steps:
- uses: dawidd6/action-download-artifact@v2
with:
Expand All @@ -22,5 +26,11 @@ jobs:
if git diff --quiet HEAD~1; then
echo "The latest commit is empty (no changes)."
else
echo $REPO_DEPLOY_KEY | base64 --decode > deploy_key
eval "$(ssh-agent -s)"
chmod 600 deploy_key
ssh-add deploy_key
rm deploy_key
git push "$(cat .autofix-repo)" "$(cat .autofix-branch)"
fi

0 comments on commit fe8ea67

Please sign in to comment.