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/