Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace set-output #40

Merged
merged 10 commits into from
Jul 2, 2024
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@
- name: "set current datetime"
env:
TZ: "Asia/Tokyo"
run: | # do not remove the space after `date +`. you need this.

Check warning on line 16 in .github/workflows/development.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] reported by reviewdog 🐶 shellcheck reported issue in this script: SC2086:info:1:57: Double quote to prevent globbing and word splitting [shellcheck] Raw Output: .github/workflows/development.yml:16:9: shellcheck reported issue in this script: SC2086:info:1:57: Double quote to prevent globbing and word splitting [shellcheck]
echo "CURRENT_DATETIME=$(date +"%Y-%m-%d %H:%M:%S")" >> $GITHUB_ENV
okuzawats marked this conversation as resolved.
Show resolved Hide resolved
- name: "set arguments"
id: "arguments"
run: |
okuzawats marked this conversation as resolved.
Show resolved Hide resolved
okuzawats marked this conversation as resolved.
Show resolved Hide resolved
okuzawats marked this conversation as resolved.
Show resolved Hide resolved
echo '::set-output name=message::"[info][title](beer)what time is it now?[/title]it is ${{ env.CURRENT_DATETIME }} now.[/info]"'
echo "MESSAGE=[info][title](beer)what time is it now?[/title]it is "${{ env.CURRENT_DATETIME }}" now.[/info]" >> $GITHUB_ENV
- uses: ./
with:
apiToken: "${{ secrets.API_KEY }}"
roomId: "${{ secrets.ROOM_ID }}"
message: "${{ steps.arguments.outputs.message }}"
message: "${{ env.MESSAGE }}"
- uses: ./
with:
apiToken: "${{ secrets.API_KEY }}"
Expand Down