Skip to content

chore(deps): bump actions/upload-artifact from 4 to 5 #1413

chore(deps): bump actions/upload-artifact from 4 to 5

chore(deps): bump actions/upload-artifact from 4 to 5 #1413

Workflow file for this run

name: pre-commit
on:
pull_request:
branches:
- main
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gabe565/setup-helm-docs-action@v1
- uses: pre-commit/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
chart-version-bumps:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup updatecli
uses: updatecli/updatecli-action@v2
- name: Bump any charts that require it
run: |
make updatecli/internal
git diff > diff.txt
if [ -s diff.txt ]; then
echo "Chart version bumps are needed. Please check the PR comments."
echo "The following chart updates are necessary:" > formatted_diff.txt
echo "\`\`\`" >> formatted_diff.txt
cat diff.txt >> formatted_diff.txt
echo "\`\`\`" >> formatted_diff.txt
exit 1
fi
env:
UPDATECLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Comment PR with needed changes
if: failure()
uses: thollander/actions-comment-pull-request@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file-path: ./formatted_diff.txt
comment-tag: chart-bump-changes
reactions: eyes