From e7b5c55a0e009d1c7cf362695b874d8b4ba70e3a Mon Sep 17 00:00:00 2001 From: Lars Date: Tue, 10 Sep 2024 16:06:24 +0200 Subject: [PATCH] fix(ci): :bug: use PAT to push (#24) --- .github/workflows/app_release.yaml | 21 ++++++++++++++------- .github/workflows/release.yaml | 6 +++--- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/.github/workflows/app_release.yaml b/.github/workflows/app_release.yaml index 8436088..4ae252f 100644 --- a/.github/workflows/app_release.yaml +++ b/.github/workflows/app_release.yaml @@ -17,10 +17,12 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 + with: + persist-credentials: false - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.x @@ -48,7 +50,7 @@ jobs: sed -i "s/^appVersion:.*/appVersion: $jellyfin_version/" charts/jellyfin/Chart.yaml # Output the new chart version for further use - echo "::set-output name=new_version::$new_version" + echo "new_version=$new_version" >> $GITHUB_OUTPUT - name: Commit changes run: | @@ -58,7 +60,9 @@ jobs: git commit -m "chore(jellyfin): Bump chart version to ${{ steps.bump_version.outputs.new_version }} and set appVersion to ${{ github.event.inputs.jellyfin_version }}" - name: Push changes - run: git push + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.JF_BOT_TOKEN }} - name: Create Git tag id: create_tag @@ -66,6 +70,9 @@ jobs: new_version="${{ steps.bump_version.outputs.new_version }}" git tag "$new_version" echo "Tag created: $new_version" - - - name: Push tag - run: git push origin "${{ steps.bump_version.outputs.new_version }}" + + - name: Push changes + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.JF_BOT_TOKEN }} + tags: true diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index bd26b5f..535ec3c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -24,8 +24,8 @@ jobs: - name: Configure Git run: | - git config user.name "$GITHUB_ACTOR" - git config user.email "$GITHUB_ACTOR@users.noreply.github.com" + git config --global user.name "jellyfin-bot" + git config --global user.email "team@jellyfin.org" - name: Install Helm uses: azure/setup-helm@v4 @@ -37,4 +37,4 @@ jobs: env: CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: - config: .github/cr.yaml \ No newline at end of file + config: .github/cr.yaml