diff --git a/.github/workflows/comment.yml b/.github/workflows/comment.yml new file mode 100644 index 0000000..aa07ca0 --- /dev/null +++ b/.github/workflows/comment.yml @@ -0,0 +1,18 @@ +name: comment + +on: + issue_comment: + types: [created] + +jobs: + publish_call: + uses: ./.github/workflows/publish.yml + publish: + needs: publish_call + runs-on: ubuntu-latest + if: | + ${{ github.event.issue.pull_request }} + && (github.event.comment.author_association == 'OWNER' || github.event.comment.author_association == 'MEMBER') + && contains(github.event.comment.body, '/release') + steps: + - run: echo "publish done" diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a5eb575..6f8488a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,6 +1,7 @@ name: publish on: + workflow_call: workflow_dispatch: jobs: