Skip to content

Commit

Permalink
Update autofix-push.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi authored Jan 14, 2025
1 parent d177cd3 commit 3642a4f
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions .github/workflows/autofix-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,28 @@ jobs:
env:
REPO_DEPLOY_KEY: ${{ secrets.REPO_DEPLOY_KEY }}
steps:
- uses: dawidd6/action-download-artifact@v7
with:
run_id: ${{ github.event.workflow_run.id }}
workflow_conclusion: ""
name: autofix-artifacts
# - uses: dawidd6/action-download-artifact@v7
# with:
# run_id: ${{ github.event.workflow_run.id }}
# workflow_conclusion: ""
# name: autofix-artifacts

- run: "chmod -R 777 ."
- run: cat .autofix-repo
- run: cat .autofix-branch
# - run: "chmod -R 777 ."
# - run: cat .autofix-repo
# - run: cat .autofix-branch
- uses: actions/checkout@v4
- run: >
if git diff --quiet HEAD~1; then
echo "The latest commit is empty (no changes)."
else
git show
ci/publish-docs.sh
echo $REPO_DEPLOY_KEY | base64 --decode > deploy_key
ci/publish-docs.sh
# if git diff --quiet HEAD~1; then
# echo "The latest commit is empty (no changes)."
# else
# git show
# 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 git@github.com:com-lihaoyi/mill.git HEAD:test-autofix-branch
fi
# eval "$(ssh-agent -s)"
# chmod 600 deploy_key
# ssh-add deploy_key
# rm deploy_key
# git push git@github.com:com-lihaoyi/mill.git HEAD:test-autofix-branch
# fi

0 comments on commit 3642a4f

Please sign in to comment.