Skip to content

Commit 247143f

Browse files
fix: [DevOps] Orchestration spec update to new release tag (#668)
* fix: [DevOps] Orchestration spec update to new release tag * Added Slack notification
1 parent 5521660 commit 247143f

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/spec-update.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,3 +212,16 @@ jobs:
212212
run: |
213213
echo "Client generation failed. Please check the Generate step logs for details."
214214
exit 1
215+
216+
- name: "Slack Notification"
217+
if: failure() && ${{ github.event.inputs.create-pr }}
218+
uses: slackapi/slack-github-action@v2.1.1
219+
with:
220+
webhook: ${{ secrets.SLACK_WEBHOOK }}
221+
webhook-type: incoming-webhook
222+
payload: |
223+
blocks:
224+
- type: "section"
225+
text:
226+
type: "mrkdwn"
227+
text: "⚠️ Weekly spec update failed! 😬 Please inspect & fix by clicking <https://github.com/SAP/ai-sdk-java/actions/runs/${{ github.run_id }}|here>"

.github/workflows/weekly-spec-update.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
run: |
4242
BRANCH="main"
4343
if [ "${{ matrix.file }}" = "orchestration" ]; then
44-
BRANCH="rel/$ORCH_VERSION"
44+
BRANCH="rel-$ORCH_VERSION"
4545
fi
4646
echo "Using branch: $BRANCH"
4747

0 commit comments

Comments
 (0)