Skip to content

Merge pull request #25 from ubie-oss/use-v7 #22

Merge pull request #25 from ubie-oss/use-v7

Merge pull request #25 from ubie-oss/use-v7 #22

name: "Create a comment to the merged pull request"
on:
push:
branches:
- main
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@v3
# 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 }} .