Skip to content

Commit b4fa032

Browse files
adekbadekclaude
andcommitted
fix: replace CircleCI env vars in post-release Slack notifications
Also removes duplicate root-level scripts (post-release.sh, release-wporg.sh) in favor of scripts/github/ versions, and updates the legacy CircleCI job reference in src/jobs/post-release.yml. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent dd4ef07 commit b4fa032

4 files changed

Lines changed: 3 additions & 125 deletions

File tree

post-release.sh

Lines changed: 0 additions & 73 deletions
This file was deleted.

release-wporg.sh

Lines changed: 0 additions & 49 deletions
This file was deleted.

scripts/github/post-release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ else
3535
else
3636
echo '[newspack-scripts] Notifying the team on Slack.'
3737
curl \
38-
--data "{\"channel\":\"$SLACK_CHANNEL_ID\",\"blocks\":[{\"type\":\"section\",\"text\":{\"type\":\"mrkdwn\",\"text\":\"⚠️ Post-release merge to alpha failed for: \`$CIRCLE_PROJECT_REPONAME\`. Check <$CIRCLE_BUILD_URL|the build> for details.\"}}]}" \
38+
--data "{\"channel\":\"$SLACK_CHANNEL_ID\",\"blocks\":[{\"type\":\"section\",\"text\":{\"type\":\"mrkdwn\",\"text\":\"⚠️ Post-release merge to alpha failed for: \`$GITHUB_REPOSITORY\`. Check <$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID|the build> for details.\"}}]}" \
3939
-H "Content-type: application/json" \
4040
-H "Authorization: Bearer $SLACK_AUTH_TOKEN" \
4141
-X POST https://slack.com/api/chat.postMessage \
@@ -61,7 +61,7 @@ else
6161
else
6262
echo '[newspack-scripts] Notifying the team on Slack.'
6363
curl \
64-
--data "{\"channel\":\"$SLACK_CHANNEL_ID\",\"blocks\":[{\"type\":\"section\",\"text\":{\"type\":\"mrkdwn\",\"text\":\"⚠️ Post-release merge to \`trunk\` failed for: \`$CIRCLE_PROJECT_REPONAME\`. Check <$CIRCLE_BUILD_URL|the build> for details.\"}}]}" \
64+
--data "{\"channel\":\"$SLACK_CHANNEL_ID\",\"blocks\":[{\"type\":\"section\",\"text\":{\"type\":\"mrkdwn\",\"text\":\"⚠️ Post-release merge to \`trunk\` failed for: \`$GITHUB_REPOSITORY\`. Check <$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID|the build> for details.\"}}]}" \
6565
-H "Content-type: application/json" \
6666
-H "Authorization: Bearer $SLACK_AUTH_TOKEN" \
6767
-X POST https://slack.com/api/chat.postMessage \

src/jobs/post-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ steps:
77
- checkout_with_workspace
88
- run:
99
name: Perform post-release chores
10-
command: ./node_modules/newspack-scripts/post-release.sh
10+
command: ./node_modules/newspack-scripts/scripts/github/post-release.sh

0 commit comments

Comments
 (0)