Skip to content

Commit

Permalink
Attempt to resolve Helm docs generation issues and auto generate PR o…
Browse files Browse the repository at this point in the history
…n release (#157)
  • Loading branch information
davidcollom committed Feb 23, 2024
1 parent d573b6f commit cefe42a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/helm-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -73,7 +74,7 @@ jobs:
git commit -m "[HELM] Update helm docs"
- name: Push Changes
if: steps.filter-readme.outputs.readme == 'true'
uses: ad-m/github-push-action@v0.6.0
uses: ad-m/github-push-action@v0.8.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.head_ref }}
Expand Down
20 changes: 14 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ concurrency:
cancel-in-progress: true

jobs:
update-version-files:
prepair-release:
# Don't push back to a tag!
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
name: Update Version Numbers
name: Prepair release
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: actions/checkout@v2
Expand All @@ -26,7 +27,6 @@ jobs:
with:
value: ${{github.ref_name}}
index_of_str: "release-"

- name: Find and Replace Helm Chart Version
uses: jacobtomlinson/gha-find-replace@v3
with:
Expand All @@ -48,7 +48,6 @@ jobs:
replace: "${{steps.release_number.outputs.substring}}"
include: "Makefile"
regex: true

- name: Detect any Local Changes
uses: dorny/paths-filter@v2
id: filter
Expand All @@ -59,8 +58,6 @@ jobs:
- 'Makefile'
- 'deploy/yaml/deploy.yaml'
- 'deploy/charts/version-checker/Chart.yaml'
- name: Commit files
if: steps.filter.outputs.versions == 'true'
run: |
Expand All @@ -74,6 +71,17 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref_name }}
- name: Create Release PR
uses: devops-infra/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
target_branch: main
title: "Release ${{steps.release_number.outputs.substring}}"
body: "**Automated Release Pull Request**"
draft: false
get_diff: false
allow_no_diff: false


helm-release:
runs-on: ubuntu-latest
Expand Down

0 comments on commit cefe42a

Please sign in to comment.