diff --git a/.github/workflows/increment-chart-version.yml b/.github/workflows/increment-chart-version.yml deleted file mode 100644 index 7d5fa05..0000000 --- a/.github/workflows/increment-chart-version.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Increment Chart Version - -on: [push, pull_request, pull_request_target] - -jobs: - build: - runs-on: ubuntu-20.04 - permissions: - contents: write - - steps: - - name: check source code - uses: actions/checkout@v3 - - - name: next release version - id: nextversion - uses: jenkins-x-plugins/jx-release-version@v2.6.11 - with: - previous-version: from-file:charts/tekton-pipeline/Chart.yaml - - - name: Update version in Chart.yaml - id: updatechart - uses: mikefarah/yq@v4.34.1 - 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: - commit_message: 'chore: update Chart.yaml' diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 92992d6..c94d199 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,7 +9,26 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - name: check source code + uses: actions/checkout@v3 + + - name: next release version + id: nextversion + uses: jenkins-x-plugins/jx-release-version@v2.6.11 + with: + previous-version: from-file:charts/tekton-pipeline/Chart.yaml + + - name: Update version in Chart.yaml + id: updatechart + uses: mikefarah/yq@v4.34.1 + 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: + commit_message: 'chore: update Chart.yaml' + - uses: J12934/helm-gh-pages-action@master with: access-token: ${{ secrets.ACCESS_TOKEN }}