From fc0d555e4855df386d2261b12799caa3302e73f3 Mon Sep 17 00:00:00 2001 From: Rosy-Glorious Miki Date: Tue, 3 Mar 2026 12:27:35 -0500 Subject: [PATCH 1/2] feat(test): migrate to create-github-app-token action (previous action deprecated) Signed-off-by: Rosy-Glorious Miki --- .github/workflows/ci.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7f51426..4d4c1d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,7 @@ on: push: branches: - main + - test-release-job pull_request: jobs: @@ -42,20 +43,24 @@ jobs: version-release: runs-on: ubuntu-latest needs: [test-makefile, test-fedora] - if: github.event_name == 'push' && github.ref == 'refs/heads/main' + if: github.event_name == 'push' && github.ref == 'refs/heads/test-release-job' steps: + - name: Github app installation token + uses: actions/create-github-app-token@v2 + id: app-token + with: + app-id: ${{ vars.RELEASE_APP_ID }} + private-key: ${{ secrets.RELEASE_APP_PK }} - 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 }} + token: ${{ steps.app-token.outputs.token }} - name: Semantic Release uses: cycjimmy/semantic-release-action@v6 + with: + dry_run: true + branches: "['test-release-job']" env: - GITHUB_TOKEN: ${{ steps.create_token.outputs.token }} + GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} From 83aa3790691a41ceec9534d14f549c16031f66a6 Mon Sep 17 00:00:00 2001 From: Rosy-Glorious Miki Date: Tue, 3 Mar 2026 13:33:11 -0500 Subject: [PATCH 2/2] fix: migrate to action 'create-github-app-token' for version-release job (previous action deprecated) Signed-off-by: Rosy-Glorious Miki --- .github/workflows/ci.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4d4c1d0..ad2e3d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,13 +3,12 @@ on: push: branches: - main - - test-release-job pull_request: jobs: test-makefile: - name: build and test makefile + name: Build and test makefile runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 @@ -20,11 +19,11 @@ jobs: run: | sudo apt-get update sudo apt-get install -y make tar diffutils bzip2 gzip curl git - - name: run make + - name: Run make run: make test-fedora: - name: build and test on Fedora latest + name: Build and test on Fedora latest runs-on: ubuntu-latest container: image: quay.io/fedora/fedora:latest @@ -43,7 +42,7 @@ jobs: version-release: runs-on: ubuntu-latest needs: [test-makefile, test-fedora] - if: github.event_name == 'push' && github.ref == 'refs/heads/test-release-job' + if: github.event_name == 'push' && github.ref == 'main' steps: - name: Github app installation token uses: actions/create-github-app-token@v2 @@ -59,8 +58,5 @@ jobs: token: ${{ steps.app-token.outputs.token }} - name: Semantic Release uses: cycjimmy/semantic-release-action@v6 - with: - dry_run: true - branches: "['test-release-job']" env: GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}