Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasKn committed Mar 19, 2024
1 parent 942d939 commit 46ba522
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/slack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
CHANGES='[{"name": "@xx/xx", "version": "1.2.0"}, {"name": "@xx/xy", "version": "0.8.9"}]'
echo "changes=${CHANGES}" >> $GITHUB_OUTPUT
- uses: actions/github-script@v7
name: Parse changeset output
id: parse_changes
with:
script: |
const changes = ${{steps.package_info.outputs.changes}};
Expand Down Expand Up @@ -66,14 +68,14 @@ jobs:
- name: Echo blocks
id: echo
run: |
echo ${{fromJson(steps.package_info.outputs.blocks)}}
echo ${{steps.parse_changes.outputs.blocks}}
# - name: Send custom JSON data to Slack workflow
# id: slack
# uses: slackapi/slack-github-action@v1.25.0
# with:
# # This data can be any valid JSON from a previous step in the GitHub Action
# payload: |
# ${{fromJson(steps.package_info.outputs.blocks)}}
# ${{fromJson(steps.parse_changes.outputs.blocks)}}
# env:
# SLACK_WEBHOOK_URL: "https://hooks.slack.com/services/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"

0 comments on commit 46ba522

Please # to comment.