Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanak-michal committed Mar 19, 2024
1 parent 39fc143 commit 6571c6e
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/auto-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,20 @@ jobs:
runs-on: ubuntu-latest
env:
CI: ''
GITHUB_TOKEN: ${{ secrets.APP_TOKEN }}
GH_TOKEN: ${{ secrets.APP_TOKEN }}
#GITHUB_TOKEN: ${{ secrets.APP_TOKEN }}
#GH_TOKEN: ${{ secrets.APP_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
permissions: write-all

steps:
- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
env:
GH_TOKEN: ${{ steps.generate-token.outputs.token }}

- name: checkout
uses: actions/checkout@v3

Expand All @@ -40,7 +49,7 @@ jobs:
run: |
git config --global user.email "[email protected]"
git config --global user.name "github-actions-bot"
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
git remote set-url origin https://git:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
- name: create version
run: |
Expand Down

0 comments on commit 6571c6e

Please sign in to comment.