From fa0678258c28367ba4b21c23f125620dd1b7b05b Mon Sep 17 00:00:00 2001 From: Andrew Kozin Date: Thu, 14 Sep 2023 20:01:14 +0100 Subject: [PATCH] Fix release action workflow --- .github/workflows/check.yml | 8 ++------ .github/workflows/release.yml | 10 ++++++---- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 3bc266b..80edda7 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -4,6 +4,8 @@ on: branches: - master pull_request: +env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} jobs: check-helm-chart: @@ -14,17 +16,11 @@ jobs: uses: actions/checkout@v4 with: path: anycable-helm/ - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - id: setup-helm name: Setup Helm uses: azure/setup-helm@v3 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - id: run-linter name: Run Helm Linter run: helm lint anycable-helm/anycable-go - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 85a8e91..211353d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,12 +3,14 @@ on: push: tags: - '*' +env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} jobs: release-helm-chart: runs-on: ubuntu-latest steps: - - id: checkout-anycable-helm + - id: checkout-repository name: Checkout anycable-helm uses: actions/checkout@v4 with: @@ -18,9 +20,9 @@ jobs: name: Setup Helm uses: azure/setup-helm@v3 - - id: prepare-helm-repository + - id: prepare-gh-pages uses: actions/checkout@v4 - needs: checkout-anycable-helm + needs: checkout-repository with: path: helm-repository/ ref: gh-pages @@ -28,7 +30,7 @@ jobs: - id: pack-chart-version name: Pack the current chart version needs: - - checkout-anycable-helm + - checkout-repository - prepare-gh-pages run: helm package -d helm-repository/ anycable-helm/anycable-go/