Skip to content

Commit

Permalink
Updated GitHub Action to continue upon failure (#527)
Browse files Browse the repository at this point in the history
* fixed github action conditional statement

Signed-off-by: Disaiah Bennett <[email protected]>

* updated GH action to continue running on error

Signed-off-by: Disaiah Bennett <[email protected]>

---------

Signed-off-by: Disaiah Bennett <[email protected]>
  • Loading branch information
dislbenn authored Oct 3, 2023
1 parent 3997898 commit 88da1fa
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/regenerate-operator-bundles-2.0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,14 @@ jobs:

# Runs a set of commands using the runners shell
- name: Lint Operator Bundles
continue-on-error: true
id: lint_bundle
run: |
make lint-operator-bundles
# Runs a set of commands using the runners shell
- name: Regenerate Operator Bundles
continue-on-error: true
id: generate_bundle
run: |
make regenerate-operator-bundles
Expand Down Expand Up @@ -70,6 +72,8 @@ jobs:
\"text\": \"$SLACK_MESSAGE\"
}" $SLACK_WEBHOOK_URL
exit 1
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/regenerate-operator-bundles-2.1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,14 @@ jobs:

# Runs a set of commands using the runners shell
- name: Lint Operator Bundles
continue-on-error: true
id: lint_bundle
run: |
make lint-operator-bundles
# Runs a set of commands using the runners shell
- name: Regenerate Operator Bundles
continue-on-error: true
id: generate_bundle
run: |
make regenerate-operator-bundles
Expand Down Expand Up @@ -68,7 +70,9 @@ jobs:
# Send the message to Slack
curl -X POST -H "Content-type: application/json" --data "{
\"text\": \"$SLACK_MESSAGE\"
}" $SLACK_WEBHOOK_URL
}" $SLACK_WEBHOOK_URL
exit 1
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/regenerate-operator-bundles-2.2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,14 @@ jobs:

# Runs a set of commands using the runners shell
- name: Lint Operator Bundles
continue-on-error: true
id: lint_bundle
run: |
make lint-operator-bundles
# Runs a set of commands using the runners shell
- name: Regenerate Operator Bundles
continue-on-error: true
id: generate_bundle
run: |
make regenerate-operator-bundles
Expand Down Expand Up @@ -69,6 +71,8 @@ jobs:
curl -X POST -H "Content-type: application/json" --data "{
\"text\": \"$SLACK_MESSAGE\"
}" $SLACK_WEBHOOK_URL
exit 1
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/regenerate-operator-bundles-2.3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,14 @@ jobs:

# Runs a set of commands using the runners shell
- name: Lint Operator Bundles
continue-on-error: true
id: lint_bundle
run: |
make lint-operator-bundles
# Runs a set of commands using the runners shell
- name: Regenerate Operator Bundles
continue-on-error: true
id: generate_bundle
run: |
make regenerate-operator-bundles
Expand Down Expand Up @@ -68,7 +70,9 @@ jobs:
# Send the message to Slack
curl -X POST -H "Content-type: application/json" --data "{
\"text\": \"$SLACK_MESSAGE\"
}" $SLACK_WEBHOOK_URL
}" $SLACK_WEBHOOK_URL
exit 1
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/regenerate-operator-bundles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@ jobs:

# Runs a set of commands using the runners shell
- name: Lint Operator Bundles
continue-on-error: true
id: lint_bundle
run: |
make lint-operator-bundles
# Runs a set of commands using the runners shell
- name: Regenerate Operator Bundles
continue-on-error: true
id: generate_bundle
run: |
make regenerate-operator-bundles
Expand Down Expand Up @@ -68,6 +70,8 @@ jobs:
curl -X POST -H "Content-type: application/json" --data "{
\"text\": \"$SLACK_MESSAGE\"
}" $SLACK_WEBHOOK_URL
exit 1
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
Expand Down

0 comments on commit 88da1fa

Please sign in to comment.