Skip to content

Commit

Permalink
New way of setting output (#60)
Browse files Browse the repository at this point in the history
* New way of setting output
  • Loading branch information
archive committed Mar 26, 2023
1 parent 70f51ff commit d9dae40
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/workflows/0-codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ on:

jobs:
analyze:
#if: ${{ false }}
name: Analyze
runs-on: ubuntu-latest
permissions:
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/10-slack-fake-build-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@ jobs:
- name: Fake build process
id: fake-build-process
run: |
RES=$(curl https://httpbin.org/json -s)
RES="${RES//'%'/'%25'}"
RES="${RES//$'\n'/'%0A'}"
RES="${RES//$'\r'/'%0D'}"
echo "::set-output name=BUILD_RESULT::$RES"
echo 'BUILD_RESULT<<EOF' >> $GITHUB_OUTPUT
curl https://httpbin.org/json -s >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
- name: Update slack with build result
uses: archive/github-actions-slack@master
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/8-slack-notification-line-breaks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ jobs:
name: Test 8 [windows-latest]

steps:

- name: Send Slack Message 1/3
uses: archive/github-actions-slack@master
id: send-message-1
Expand All @@ -28,7 +27,6 @@ jobs:
- name: Result from "Send Slack Message"
run: echo '${{ steps.send-message-1.outputs.slack-result }}'


- name: Send Slack Message 2/3
uses: archive/github-actions-slack@master
id: send-message-2
Expand All @@ -40,7 +38,6 @@ jobs:
- name: Result from "Send Slack Message"
run: echo '${{ steps.send-message-2.outputs.slack-result }}'


- name: Send Slack Message 3/3
uses: archive/github-actions-slack@master
id: send-message-3
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/9-slack-update-message-line-breaks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ jobs:
- name: Send Slack Reaction To Message Result
run: echo 'Data - ${{ steps.send-message-1.outputs.slack-result }}'



- name: Send Slack Message
uses: archive/github-actions-slack@master
id: send-message-2
Expand Down

0 comments on commit d9dae40

Please sign in to comment.