Skip to content

Commit

Permalink
ci: fixed tagged release script
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorwhitney committed Oct 16, 2024
1 parent ed80bed commit 8835ba7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/helm-tagged-release-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ jobs:
runs-on: ubuntu-latest
env:
RELEASE_VERSION: "${{ github.event.release.tag_name || 'test' }}"
BUILD_IN_CONTAINER: false
steps:
- uses: actions/checkout@v4
- uses: gabe565/setup-helm-docs-action@v1
with:
version: v1.11.2

- id: "get_github_app_token"
name: "get github app token"
Expand All @@ -24,13 +28,14 @@ jobs:

- name: Update/regenerate files
id: update
run: bash .github/workflows/scripts/helm-tagged-release.sh ${RELEASE_VERSION}
run: |
bash .github/workflows/scripts/helm-tagged-release.sh ${RELEASE_VERSION}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ steps.get_github_app_token.outputs.token }}
title: Release loki Helm chart ${{ steps.update.outputs.new_chart_version }}
title: "chore: release loki helm chart ${{ steps.update.outputs.new_chart_version }}"
body: Automated PR created by [helm-tagged-release-pr.yaml](https://github.com/grafana/loki/blob/main/.github/workflows/helm-tagged-release-pr.yaml)
commit-message: Update loki chart to ${{ steps.update.outputs.new_chart_version }}
branch: helm-chart-tagged-${{ steps.update.outputs.new_chart_version }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/helm-weekly-release-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- uses: gabe565/setup-helm-docs-action@v1
with:
version: v1.11.2

- id: "get_github_app_token"
name: "get github app token"
uses: "actions/create-github-app-token@v1"
Expand All @@ -35,8 +36,6 @@ jobs:
uses: "grafana/shared-workflows/actions/dockerhub-login@main"

- uses: imjasonh/[email protected]
# - run: |
# echo "${{ env.DOCKER_PASSWORD }}" | crane auth login registry.hub.docker.com --username "${{ env.DOCKER_USERNAME }}" --password-stdin

- name: Update/regenerate files for k release
id: update-k
Expand All @@ -47,7 +46,7 @@ jobs:
uses: peter-evans/create-pull-request@v5
with:
token: ${{ steps.get_github_app_token.outputs.token }}
title: "chore: release loki Helm chart ${{ steps.update-k.outputs.new_chart_version }}"
title: "chore: release loki helm chart ${{ steps.update-k.outputs.new_chart_version }}"
body: Automated PR created by [helm-weekly-release-pr.yaml](https://github.com/grafana/loki/blob/main/.github/workflows/helm-weekly-release-pr.yaml)
commit-message: Update loki chart to ${{ steps.update-k.outputs.new_chart_version }}
branch: helm-chart-weekly-${{ steps.update-k.outputs.new_chart_version }}
Expand All @@ -56,13 +55,14 @@ jobs:

- name: Update/regenerate files for standard release
id: update
run: bash .github/workflows/scripts/helm-weekly-release.sh
run: |
bash .github/workflows/scripts/helm-weekly-release.sh
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ steps.get_github_app_token.outputs.token }}
title: "chore: release loki Helm chart ${{ steps.update.outputs.new_chart_version }}"
title: "chore: release loki helm chart ${{ steps.update.outputs.new_chart_version }}"
body: Automated PR created by [helm-weekly-release-pr.yaml](https://github.com/grafana/loki/blob/main/.github/workflows/helm-weekly-release-pr.yaml)
commit-message: Update loki chart to ${{ steps.update.outputs.new_chart_version }}
branch: helm-chart-weekly-${{ steps.update.outputs.new_chart_version }}
Expand Down

0 comments on commit 8835ba7

Please sign in to comment.