diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bf2ee412..956d61c0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -56,11 +56,20 @@ jobs: - build runs-on: ubuntu-latest timeout-minutes: 10 + steps: + - name: Generate token + id: generate_token + uses: tibdex/github-app-token@v1 + with: + app_id: ${{ secrets.OS_GITHUB_APP_ID }} + private_key: ${{ secrets.OS_GITHUB_APP_PRIVATE_KEY }} + steps: - name: "☁️ checkout repository" uses: actions/checkout@v3 with: fetch-depth: 0 + token: ${{ steps.generate_token.outputs.token }} - name: "📂 download build artifacts" uses: actions/download-artifact@v2 @@ -70,9 +79,9 @@ jobs: - name: "🚀 release" id: semantic-release - uses: open-sauced/release@v2.1.1 + uses: open-sauced/release@v2 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} cleanup: name: Cleanup actions