Bump codecov/codecov-action from 4 to 5 #824
Workflow file for this run
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: Bundle | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
bundle-check-changed: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: "go.mod" | |
- name: Install operator-sdk | |
run: hack/install_operator-sdk.sh | |
- name: Generate bundle | |
run: make bundle | |
- name: Check if there are changes | |
id: changes | |
run: | | |
if [[ $(git diff --quiet -I'^ createdAt: ' bundle) ]]; then echo "changed=true" >> $GITHUB_OUTPUT; else echo "changed=false" >> $GITHUB_OUTPUT; fi | |
- name: Bundle files changed, failed run | |
if: steps.changes.outputs.changed == 'true' | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
core.setFailed('Files changed in bundle generation. Please run `make bundle` and commit.') |