-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(CI): Add step to create PR instead of direct commit (#260)
Signed-off-by: Anurag Rajawat <[email protected]>
- Loading branch information
1 parent
d0ea38a
commit a969d43
Showing
2 changed files
with
56 additions
and
40 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Release Helm charts | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: "Release tag which has to be updated" | ||
type: "string" | ||
required: true | ||
|
||
jobs: | ||
release_helm_charts: | ||
if: github.repository == '5GSEC/nimbus' | ||
permissions: | ||
contents: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Helm | ||
uses: azure/setup-helm@v4 | ||
|
||
- name: Generate a token | ||
id: generate-token | ||
uses: actions/create-github-app-token@v1 | ||
with: | ||
app-id: ${{ vars.ACTIONS_APP_ID }} | ||
private-key: ${{ secrets.ACTIONS_APP_PRIVATE_KEY }} | ||
repositories: charts | ||
|
||
- name: Publish Helm chart | ||
uses: stefanprodan/helm-gh-pages@master | ||
with: | ||
# Access token which can push to a different repo in the same org | ||
token: ${{ steps.generate-token.outputs.token }} | ||
charts_dir: deployments/ | ||
# repo where charts would be published | ||
owner: 5GSEC | ||
repository: charts | ||
branch: gh-pages | ||
charts_url: https://5gsec.github.io/charts/ | ||
commit_username: "github-actions[bot]" | ||
commit_email: "github-actions[bot]@users.noreply.github.com" |
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