Skip to content

Commit

Permalink
fix(ci): failure alerts are not triggered on ROSA schedule integration (
Browse files Browse the repository at this point in the history
  • Loading branch information
leiicamundi authored Jul 5, 2024
1 parent a18ee95 commit fa445d0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .github/actions/workflow-vars/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,15 @@ runs:
# In the upgrade flow, the latest released chart for certain minor Camunda version will installed,
# then upgraded from the PR branch to ensure upgradability.
if [[ "${{ inputs.setup-flow }}" == 'upgrade' ]]; then
git fetch origin main:main --no-tags
current_branch=$(git symbolic-ref --short HEAD)
if [ "$current_branch" != "main" ]; then
# Perform the fetch operation
git fetch origin main:main --no-tags
else
echo "You are currently on the 'main' branch. Fetch operation not performed."
fi
TEST_CHART_VERSION="$(git show main:charts/${{ inputs.chart-dir }}/Chart.yaml | yq '.version')"
echo "TEST_CHART_VERSION=${TEST_CHART_VERSION}" | tee -a "$GITHUB_ENV" "$GITHUB_OUTPUT"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-integration-rosa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -389,15 +389,15 @@ jobs:

report:
name: "Report failures"
if: always()
if: failure()
runs-on: ubuntu-latest
needs:
- launch-tests
- cleanup-clusters
steps:
- name: Notify in Slack in case of failure
id: slack-notification
if: failure() && github.event_name == 'schedule'
if: github.event_name == 'schedule'
uses: slackapi/slack-github-action@70cd7be8e40a46e8b0eced40b0de447bdb42f68e # v1.26.0
with:
channel-id: ${{ secrets.SLACK_CHANNEL_ID }}
Expand Down

0 comments on commit fa445d0

Please sign in to comment.