Merge pull request 'watchdog-go: ciをマージ後に行えるように' (#3) from watchdog-go-ci into master
Reviewed-on: #3
This commit is contained in:
commit
c1295911ca
|
@ -1,21 +1,13 @@
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types:
|
types:
|
||||||
- opened
|
- closed
|
||||||
- synchronize
|
|
||||||
- labeled
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
pull-requests: read
|
pull-requests: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- run: echo ${{github.event.action}}
|
|
||||||
- run: echo ${{ contains(github.event.pull_request.labels.*.name, 'watchdog-go') }}
|
|
||||||
|
|
||||||
build-docker-image:
|
build-docker-image:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
|
@ -23,12 +15,8 @@ jobs:
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
working-directory: ./watchdog-go
|
working-directory: ./watchdog-go
|
||||||
if: |
|
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name,'watchdog-go')
|
||||||
((github.event.action == 'labeled') &&
|
|
||||||
(github.event.label.name == 'watchdog-go')) ||
|
|
||||||
((github.event.action == 'synchronized') &&
|
|
||||||
contains(github.event.pull_request.labels.*.name, 'watchdog-go')) ||
|
|
||||||
(github.event.action == 'workflow_dispatch')
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
Loading…
Reference in New Issue