Skip to content

Commit

Permalink
test 2 - with app token in checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
jakub committed Nov 17, 2024
1 parent d9c3db0 commit 2d46262
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/modify-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,16 @@ jobs:
run:
shell: bash
steps:
- name: generate token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: checkout
uses: actions/checkout@v4
with:
token: ${{ steps.generate-token.outputs.token }}
- name: config git
run: |
git config --global --add safe.directory '*'
Expand Down Expand Up @@ -52,12 +60,6 @@ jobs:
git add . && git commit -m "${title}"
git push origin "${fbranch}:${fbranch}"
- name: generate token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: submit pull request
env:
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
Expand Down

0 comments on commit 2d46262

Please sign in to comment.