This repository has been archived by the owner on Feb 2, 2024. It is now read-only.
chore(deps): update helm release common to v2.14.1 #171
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
name: Bump | |
on: issue_comment | |
jobs: | |
chart-version: | |
name: Chart Version | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
id-token: write | |
issues: write | |
steps: | |
- name: Check for command | |
id: command | |
continue-on-error: true | |
uses: xt0rted/slash-command-action@bf51f8f5f4ea3d58abc7eca58f77104182b23e88 # v2 | |
with: | |
command: bump | |
reaction: "true" | |
reaction-type: "eyes" | |
allow-edits: "false" | |
permission-level: write | |
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5 | |
if: steps.command.outputs.command-name | |
with: | |
python-version: 3.7 | |
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5 | |
if: steps.command.outputs.command-name | |
with: | |
go-version: ^1 | |
- name: Setup helm-docs | |
if: steps.command.outputs.command-name | |
run: go install github.com/norwoodj/helm-docs/cmd/helm-docs@latest | |
- name: Generate token | |
if: steps.command.outputs.command-name | |
id: generate_token | |
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2 | |
with: | |
app_id: ${{ vars.JANUS_IDP_GITHUB_APP_ID }} | |
private_key: ${{ secrets.JANUS_IDP_GITHUB_APP_PRIVATE_KEY }} | |
- name: Checkout Repository | |
if: steps.command.outputs.command-name | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
with: | |
token: ${{ steps.generate_token.outputs.token }} | |
- name: Checkout Pull Request | |
if: steps.command.outputs.command-name | |
run: gh pr checkout ${{ github.event.issue.number }} | |
env: | |
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} | |
- name: Get version | |
if: steps.command.outputs.command-name | |
id: get_version | |
uses: mikefarah/yq@dd648994340a5d03225d97abf19c9bf1086c3f07 # v4.40.5 | |
with: | |
cmd: yq ".version" charts/backstage/Chart.yaml | |
- uses: actions-ecosystem/action-bump-semver@34e334551143a5301f38c830e44a22273c6ff5c5 # v1 | |
if: steps.command.outputs.command-name | |
id: semver | |
with: | |
current_version: ${{ steps.get_version.outputs.result }} | |
level: ${{ steps.command.outputs.command-arguments }} | |
- name: Bump the version | |
if: steps.command.outputs.command-name | |
uses: mikefarah/yq@dd648994340a5d03225d97abf19c9bf1086c3f07 # v4.40.5 | |
with: | |
cmd: yq -i '.version = "${{ steps.semver.outputs.new_version }}"' charts/backstage/Chart.yaml | |
- name: Run pre-commit | |
if: steps.command.outputs.command-name | |
uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507 # renovate: tag=v3.0.0 | |
continue-on-error: true | |
- name: Setup Gitsign | |
if: steps.command.outputs.command-name | |
uses: chainguard-dev/actions/setup-gitsign@main | |
- name: Commit pre-commit changes | |
if: steps.command.outputs.command-name | |
uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d # v5 | |
with: | |
commit_message: Bump version to ${{ steps.semver.outputs.new_version }} | |
commit_options: '-s' | |
commit_user_name: Janus IDP | |
commit_user_email: 139477802+janus-idp[bot]@users.noreply.github.com | |
commit_author: Janus IDP <139477802+janus-idp[bot]@users.noreply.github.com> | |