diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 85c3fb3..9411035 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,14 +42,20 @@ jobs: version-release: runs-on: ubuntu-latest needs: [test-makefile, test-fedora] + if: github.event_name == 'push' && github.ref == 'refs/heads/main' steps: - name: Checkout uses: actions/checkout@v6 with: fetch-depth: 0 fetch-tags: true + - name: Github app installation token + id: create_token + uses: tibdex/github-app-token@v2 + with: + app_id: ${{ secrets.RELEASE_APP_ID }} + private_key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }} - name: Semantic Release uses: cycjimmy/semantic-release-action@v6 - if: github.event_name == 'push' && github.ref == 'refs/heads/main' env: - GITHUB_TOKEN: ${{ secrets.RELEASE_APP_ID }} + GITHUB_TOKEN: ${{ steps.create_token.outputs.token }}