From 9a053357fa7c44664d3cab49d22dc32bf523e63c Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Mon, 7 Sep 2020 08:36:06 -0700 Subject: [PATCH] trying to fix automated release. --- .github/workflows/release-docker.yaml | 2 +- .github/workflows/release.yaml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-docker.yaml b/.github/workflows/release-docker.yaml index 159992b..80746ca 100644 --- a/.github/workflows/release-docker.yaml +++ b/.github/workflows/release-docker.yaml @@ -28,7 +28,7 @@ jobs: id: upload-release-asset3 uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.SCRUTINY_GITHUB_TOKEN }} with: upload_url: ${{ github.event.release.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps asset_path: docker-analogj-scrutiny-${{ github.event.release.tag_name }}.tar diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index badd77d..335d332 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -28,7 +28,7 @@ jobs: with: version_bump_type: ${{ github.event.inputs.version_bump_type }} version_metadata_path: ${{ github.event.inputs.version_metadata_path }} - github_token: ${{ secrets.GITHUB_TOKEN }} + github_token: ${{ secrets.SCRUTINY_GITHUB_TOKEN }} - name: Build env: GOOS: linux @@ -59,13 +59,13 @@ jobs: message: '(${{steps.bump_version.outputs.release_version}}) Automated packaging of release by Packagr' tag: ${{steps.bump_version.outputs.release_version}} env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this line unchanged + GITHUB_TOKEN: ${{ secrets.SCRUTINY_GITHUB_TOKEN }} # Leave this line unchanged - name: Create Release id: create_release uses: actions/create-release@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.SCRUTINY_GITHUB_TOKEN }} with: tag_name: ${{ steps.bump_version.outputs.release_version }} release_name: Release ${{ steps.bump_version.outputs.release_version }} @@ -75,7 +75,7 @@ jobs: id: upload-release-asset1 uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.SCRUTINY_GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps asset_path: ${{ env.PROJECT_PATH }}/scrutiny-web-linux-amd64 @@ -85,7 +85,7 @@ jobs: id: upload-release-asset2 uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.SCRUTINY_GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps asset_path: ${{ env.PROJECT_PATH }}/scrutiny-collector-metrics-linux-amd64