Bump tj-actions/changed-files from 39 to 40 (#1187) #621
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: Release Charts | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
helm-release: | |
runs-on: ubuntu-latest | |
env: | |
CHART_README_LOCATION: cmd/relayproxy/helm-charts/relay-proxy/README.md | |
MAIN_BRANCH_NAME: main | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Get changed files in the docs folder | |
id: changed-files-specific | |
uses: tj-actions/changed-files@v40 | |
with: | |
files: ./cmd/relayproxy/helm-charts/** | |
- name: Publish Helm chart | |
if: steps.changed-files-specific.outputs.any_changed == 'true' | |
uses: stefanprodan/helm-gh-pages@master | |
with: | |
token: ${{ secrets.PERSONAL_GITHUB_TOKEN }} | |
charts_dir: ./cmd/relayproxy/helm-charts/ | |
charts_url: https://charts.gofeatureflag.org | |
owner: go-feature-flag | |
repository: helm-charts | |
branch: gh-pages | |
target_dir: ./ | |
commit_username: thomaspoignant | |
commit_email: [email protected] | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '>=1.17.0' | |
- name: Update chart README | |
if: steps.changed-files-specific.outputs.any_changed == 'true' | |
run: make generate-helm-docs | |
- name: Checkout main branch | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ env.MAIN_BRANCH_NAME }} | |
path: ${{ env.MAIN_BRANCH_NAME }} | |
token: ${{ secrets.PERSONAL_GITHUB_TOKEN }} | |
fetch-depth: 0 | |
- run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
- name: Copy README to main branch | |
run: cp -rf $CHART_README_LOCATION $MAIN_BRANCH_NAME/$CHART_README_LOCATION | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
if: steps.changed-files-specific.outputs.any_changed == 'true' | |
with: | |
branch: update-relay-proxy-chart-readme | |
title: Update relay proxy helm README | |
body: Automated pull request to update relay-proxy helm chart README | |
commit-message: Update relay proxy helm README | |
labels: automerge | |
assignees: thomaspoignant | |
draft: false | |
signoff: true | |
delete-branch: true | |
path: ${{ env.MAIN_BRANCH_NAME }} | |
token: ${{ secrets.PERSONAL_GITHUB_TOKEN }} |