Skip to content

Merge pull request #37 from ubie-oss/trunk-io/update-trunk #34

Merge pull request #37 from ubie-oss/trunk-io/update-trunk

Merge pull request #37 from ubie-oss/trunk-io/update-trunk #34

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 }} .