diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 9d0aefb..4c870e8 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -10,10 +10,18 @@ jobs: runs-on: ubuntu-latest if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')" steps: + - name: Generate a token + id: generate-token + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ vars.NB_CHEF_BOT_ID }} + private-key: ${{ secrets.NB_CHEF_BOT_KEY }} + - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 0 + token: ${{ steps.generate-token.outputs.token }} - name: Download latest auto run: | @@ -21,13 +29,6 @@ jobs: wget -O- "$auto_download_url" | gunzip > ~/auto chmod a+x ~/auto - - name: Generate a token - id: generate-token - uses: actions/create-github-app-token@v1 - with: - app-id: ${{ vars.NB_CHEF_BOT_ID }} - private-key: ${{ secrets.NB_CHEF_BOT_KEY }} - - name: Release run: ~/auto shipit -vv env: