-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: bakhtin <[email protected]>
- Loading branch information
Showing
1 changed file
with
37 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 "[email protected]" | ||
- name: Install Helm | ||
uses: azure/[email protected] | ||
# - name: Install Helm | ||
# uses: azure/[email protected] | ||
# 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/[email protected] | ||
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/[email protected] | ||
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/[email protected] | ||
# env: | ||
# CR_TOKEN: "$GITHUB_APP_ACCESS_TOKEN" | ||
# with: | ||
# charts_dir: charts |