Changeset 59920
- Timestamp:
- 03/03/2025 10:07:57 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/slack-notifications.yml
r59720 r59920 136 136 retries: 2 137 137 retry-exempt-status-codes: 418 138 result-encoding: string 138 139 script: | 139 140 const commit_details = await github.rest.repos.getCommit({ … … 144 145 return commit_details.data.commit.message; 145 146 146 - name: Prepare commit message.147 id: commit-message148 run: |149 # shellcheck disable=SC2016150 COMMIT_MESSAGE="$(echo "${COMMIT_MSG_RAW}" | awk 'NR==1' | sed 's/`/\\`/g' | sed 's/\"/\\\\\\"/g' | sed 's/\$/\\$/g')"151 echo "commit_message_escaped=${COMMIT_MESSAGE}" >> "$GITHUB_OUTPUT"152 env:153 COMMIT_MSG_RAW: ${{ ( github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' ) && fromJson( steps.current-commit-message.outputs.result ) || github.event.head_commit.message }}154 155 147 - name: Construct payload and store as an output 156 148 id: create-payload 157 149 run: | 150 COMMIT_MSG="$(echo "${COMMIT_MSG_RAW}" | awk 'NR==1')" 158 151 PAYLOAD="$( jq \ 159 152 -n \ … … 166 159 echo "payload=$PAYLOAD" >> "$GITHUB_OUTPUT" 167 160 env: 168 COMMIT_MSG : ${{ steps.commit-message.outputs.commit_message_escaped}}161 COMMIT_MSG_RAW: ${{ ( github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' ) && fromJson( steps.current-commit-message.outputs.result ) || github.event.head_commit.message }} 169 162 170 163 # Posts notifications when a workflow fails.
Note: See TracChangeset
for help on using the changeset viewer.