Amend/resolvers deploy #18
Workflow file for this run
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: Increment Version | |
on: | |
pull_request_target: | |
branches: | |
- main | |
types: [closed] | |
jobs: | |
build: | |
if: github.event.pull_request.merged | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: check source code | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.ACCESS_TOKEN }} | |
ref: ${{ github.head_ref }} | |
- name: next release version | |
id: nextversion | |
uses: jenkins-x-plugins/[email protected] | |
with: | |
previous-version: from-file:charts/tekton-pipeline/Chart.yaml | |
- name: Update version in Chart.yaml | |
id: updatechart | |
uses: mikefarah/[email protected] | |
with: | |
cmd: yq eval '.version = "${{ steps.nextversion.outputs.version }}"' -i charts/tekton-pipeline/Chart.yaml | |
- name: Commit Changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
branch: main | |
commit_message: 'chore: update Chart.yaml' |