From d37c22770c0c0d3c6e5c06954ba8c0dbe4cae81f Mon Sep 17 00:00:00 2001 From: Zach Radlicz Date: Fri, 9 May 2025 12:05:03 -0500 Subject: [PATCH] correcting workflow logic --- .github/workflows/release-workflow.yaml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-workflow.yaml b/.github/workflows/release-workflow.yaml index 4efccc2..45214ad 100644 --- a/.github/workflows/release-workflow.yaml +++ b/.github/workflows/release-workflow.yaml @@ -33,10 +33,9 @@ jobs: firmware-version-updated: ${{ steps.compile.outputs.firmware-version-updated }} release-url: ${{ steps.release.outputs.html_url }} steps: - # Generate a GitHub App token using the official action + # Generate a GitHub App token using the official action - UNCONDITIONALLY - name: Create GitHub App token id: app-token - if: steps.compile.outputs.firmware-version-updated == 'true' uses: actions/create-github-app-token@v2 with: app-id: ${{ secrets.APP_ID }} @@ -79,10 +78,8 @@ jobs: # When a GitHub Action pushes commits or tags, it does not trigger a new GitHub Action job - name: Push changes if: steps.compile.outputs.firmware-version-updated == 'true' - uses: ad-m/github-push-action@v0.6.0 - with: - github_token: ${{ steps.app-token.outputs.token }} - branch: ${{ github.ref }} + run: | + git push origin HEAD:${{ github.ref_name }} - name: Create archive of target directory if: steps.compile.outputs.firmware-version-updated == 'true' @@ -100,7 +97,7 @@ jobs: name: "Firmware v${{ steps.compile.outputs.firmware-version }}" tag: "v${{ steps.compile.outputs.firmware-version }}" commit: ${{ steps.commit.outputs.updated-version-sha || github.sha }} - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ steps.app-token.outputs.token }} upload: name: Upload to Particle