mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-18 20:50:12 +08:00
fix: workflow
This commit is contained in:
parent
f0078bb23f
commit
3e04445cac
4
.github/workflows/pull.yml
vendored
4
.github/workflows/pull.yml
vendored
@ -15,11 +15,11 @@ jobs:
|
||||
# Runs a single command using the runners shell
|
||||
- name: Get PR commit message
|
||||
id: pr
|
||||
run: echo "::set-output name=message::$(git log --format=%B -n 1)"
|
||||
run: echo "message=$(git log --format=%B -n 1)" > $GITHUB_OUTPUT
|
||||
|
||||
# Runs a set of commands using the runners shell
|
||||
- name: Close PR if commit message is "Update main.go"
|
||||
if: steps.pr.outputs.message == 'Update main.go'
|
||||
if: $GITHUB_OUTPUT == 'Update main.go'
|
||||
run: |
|
||||
echo "Closing this PR because commit message is 'Update main.go'"
|
||||
gh pr close ${{ github.event.pull_request.number }} --delete-branch
|
||||
|
||||
Loading…
Reference in New Issue
Block a user