Skip to content

Commit

Permalink
Add .github/workflows/*
Browse files Browse the repository at this point in the history
  • Loading branch information
Kjuly committed May 28, 2024
1 parent 6dee811 commit 088460d
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/issue_closed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Check Closed Issue

on:
issues:
types: [closed]

jobs:
check-closed-issue-to-close-pr:
if: contains(github.event.issue.labels.*.name, 'add event') || contains(github.event.issue.labels.*.name, 'update event')
runs-on: ubuntu-latest
steps:
- name: Close PR from Issue
uses: swingdance/close-pr-from-issue@main
with:
token: "${{ secrets.GH_TOKEN }}"

26 changes: 26 additions & 0 deletions .github/workflows/issue_opened.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Check Opened Issue

on:
issues:
types: [opened, reopened]

jobs:
check-opened-issue-to-add-event:
if: contains(github.event.issue.labels.*.name, 'add event')
uses: swingdance/entity-ci/.github/workflows/create_pr_to_add_entity.yml@main
with:
type: event
template_filename: 02-add_entity.yml
reusable_workflow_repo: swingdance/entity-ci
secrets:
token: "${{ secrets.GH_TOKEN }}"

check-opened-issue-to-update-event:
if: contains(github.event.issue.labels.*.name, 'update event')
uses: swingdance/entity-ci/.github/workflows/create_pr_to_update_entity.yml@main
with:
type: event
template_filename: 03-update_entity.yml
reusable_workflow_repo: swingdance/entity-ci
secrets:
token: "${{ secrets.GH_TOKEN }}"

0 comments on commit 088460d

Please sign in to comment.