Skip to content

Commit

Permalink
test: test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mentlak0 committed Jul 3, 2023
1 parent 4742255 commit 15eec52
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/update-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Increment Version
on: pull_request

jobs:
build:
runs-on: ubuntu-20.04
steps:
# - name: check source code
# uses: actions/checkout@v2
# with:
# fetch-depth: 0
# token: ${{ secrets.GIT_BOT_TOKEN }}
# - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*

- 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
uses: mikefarah/[email protected]
if: ${{ steps.nextversion.outputs.available == 'true' }}
with:
cmd: yq eval '.version = "${{ steps.nextversion.outputs.version }}"' -i charts/tekton-pipeline/Chart.yaml

0 comments on commit 15eec52

Please sign in to comment.