Skip to content

Commit

Permalink
using secret token
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfredo committed Dec 17, 2024
1 parent 2ab68bf commit c8f9f5f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ jobs:
- name: Upload changes to base branch
run: |
HEAD_REF="${{ github.head_ref }}"
if [ "$HEAD_REF" != "main" ]; then
git config user.name "github-actions"
git config user.email "[email protected]"
git commit -am "deno formatting"
git push
fi
BRANCH_TO_PUSH="${HEAD_REF:-main}"
git config user.name "github-actions"
git config user.email "[email protected]"
git commit -am "deno formatting"
git push https://x-access-token:${{ secrets.AWSF_PUSH_MAIN }}@github.com/${{ github.repository }} "$BRANCH_TO_PUSH"

0 comments on commit c8f9f5f

Please sign in to comment.