Skip to content

Commit c0c15ea

Browse files
committed
Fix outputs for scheduled upgrade test
1 parent 3752f4a commit c0c15ea

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/schedule-upgrade.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ on:
1414
workflow_dispatch:
1515

1616
jobs:
17-
test_upgrade:
17+
get_latest_release:
1818
runs-on: ubuntu-latest
1919
if: github.repository == 'azimuth-cloud/azimuth-config'
20+
outputs:
21+
latest_release: ${{ steps.get-tag.outputs.latest }}
2022
steps:
2123
- name: Checkout
2224
uses: actions/checkout@v5
@@ -28,17 +30,24 @@ jobs:
2830
env:
2931
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3032

33+
test_upgrade:
34+
runs-on: ubuntu-latest
35+
needs: get_latest_release
36+
steps:
3137
- name: Run upgrade workflow
3238
uses: ./.github/workflows/test-upgrade.yml
3339
with:
34-
from-ref: ${{ steps.get-tag.outputs.latest }}
40+
from-ref: ${{ needs.get_latest_release.outputs.latest_release }}
3541
to-ref: "devel"
3642

43+
send_slack_message:
44+
runs_on: ubuntu-latest
45+
steps:
3746
- name: Send message to Slack
3847
uses: slackapi/slack-github-action@v2.1.1
3948
with:
4049
webhook: "${{ secrets.SLACK_WEBHOOK_URL }}"
4150
webhook-type: incoming-webhook
4251
payload: |
43-
text: ":siren: Scheduled Azimuth upgrade test failed\n"${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}""
52+
text: ":siren: Scheduled Azimuth upgrade test failed\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
4453
if: ${{ failure() }}

0 commit comments

Comments
 (0)