Skip to content

Commit

Permalink
TODO to Issue now only runs when merging pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
sveinugu committed Dec 5, 2023
1 parent ebdbc07 commit 645af23
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/todo_to_issue.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
name: "Run TODO to Issue"
on: ["push"]
on:
pull_request:
types:
- closed

jobs:
todo-to-issue:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v3"
- name: "TODO to Issue"
uses: "alstr/todo-to-issue-action@v4"
if_merged:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- run: |
echo The PR was merged
todo-to-issue:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v3"
- name: "TODO to Issue"
uses: "alstr/todo-to-issue-action@v4"

0 comments on commit 645af23

Please sign in to comment.