Skip to content

Commit

Permalink
ci: Add IssueOps system
Browse files Browse the repository at this point in the history
  • Loading branch information
CycleBai committed Aug 3, 2024
1 parent fdfe7f2 commit 1db039d
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/issueops.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "IssueOps"

# the workflow to execute on is comments that are newly created
on:
issue_comment:
types: [created]

# permissions needed for reacting to IssueOps commands on issues and PRs
permissions:
pull-requests: write
issues: write
checks: read

jobs:
ping:
runs-on: ubuntu-latest
steps:
# execute IssueOps command logic, hooray!
# this will be used to "gate" all future steps below
- uses: github/command@main
id: command
with:
command: ".ping"

# run your custom logic for your project here - example seen below

# conditionally run some logic here
- name: ping
if: ${{ steps.command.outputs.continue == 'true' }}
run: echo "success"

0 comments on commit 1db039d

Please sign in to comment.