Merge pull request #37 from ubie-oss/trunk-io/update-trunk #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create a comment to the merged pull request | |
on: | |
push: | |
branches: | |
- main | |
permissions: read-all | |
jobs: | |
comment: | |
permissions: | |
contents: read | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
# We have to check out the default branch before using the action. | |
- uses: actions/checkout@v4 | |
# The step is failed. | |
- name: Dummy failed step | |
id: dummy-failed-step | |
run: | | |
echo "The dummy task was failed." | |
exit 1 | |
# The step is triggered only when dummy-failed-step is failed. | |
- uses: ./ | |
if: ${{ failure() }} | |
id: merged-pr-info | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
message: |- | |
The dummy task was failed. | |
We can put a \`buck-quoted message\`. | |
Please take a look at ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} . |