diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index fd6cd63e..8f096b21 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -3,7 +3,8 @@ name: Release Charts on: push: branches: - - main + # - main + - ab-test-gh-app jobs: release: @@ -19,18 +20,43 @@ jobs: git config user.name "$GITHUB_ACTOR" git config user.email "$GITHUB_ACTOR@users.noreply.github.com" - - name: Install Helm - uses: azure/setup-helm@v3.3 + # - name: Install Helm + # uses: azure/setup-helm@v3.3 + # with: + # version: v3.12.1 + + # - name: Install additional Helm repos + # run: | + # helm repo add bitnami https://charts.bitnami.com/bitnami + + - name: Generate JWT and token + id: generate-github-app-tokens + uses: jamestrousdale/github-app-jwt-token@0.1.4 with: - version: v3.12.1 + app-id: ${{ secrets.CHART_UPDATER_APP_ID }} + private-key: ${{ secrets.CHART_UPDATER_APP_KEY }} - - name: Install additional Helm repos + - name: Set environment from action output run: | - helm repo add bitnami https://charts.bitnami.com/bitnami + { + echo "GITHUB_APP_JWT=${{ steps.generate-github-app-tokens.outputs.jwt }}" + echo "GITHUB_APP_ACCESS_TOKEN=${{ steps.generate-github-app-tokens.outputs.access-token }}" + } >> ${GITHUB_ENV} - - name: Run chart-releaser - uses: helm/chart-releaser-action@v1.5.0 - env: - CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + - name: Make changes + run: | + date > current-date.txt + + - name: Commit & Push changes + uses: actions-js/push@master with: - charts_dir: charts + github_token: "$GITHUB_APP_ACCESS_TOKEN" + message: Test gh-pages + branch: gh-pages-test + + # - name: Run chart-releaser + # uses: helm/chart-releaser-action@v1.5.0 + # env: + # CR_TOKEN: "$GITHUB_APP_ACCESS_TOKEN" + # with: + # charts_dir: charts