Skip to content

Commit

Permalink
testing personal token
Browse files Browse the repository at this point in the history
  • Loading branch information
djarecka committed Jun 19, 2024
1 parent f36bf58 commit da81a7f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/push_reproschema_py.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git clone https://github.com/$TARGET_REPO.git
git clone https://x-access-token:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/$TARGET_REPO.git
# cd reproschema-py
git checkout -b release #_$LAST_VERSION
Expand Down Expand Up @@ -53,15 +53,14 @@ jobs:
- name: Push changes to target repository
env:
TARGET_REPO: djarecka/reproschema-py
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
run: |
# cd your-target-repo
cd your-target-repo
git push --set-upstream https://x-access-token:${GITHUB_TOKEN}@github.com/$TARGET_REPO.git release
- name: Create pull request
env:
TARGET_REPO: djarecka/reproschema-py
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
run: |
curl -X POST -H "Authorization: token ${GITHUB_TOKEN}" \
-d '{"title":"Automated PR: Add new file", "head":"release", "base":"main"}' \
Expand Down

0 comments on commit da81a7f

Please sign in to comment.