From b7955a27396e54afc5e11cc6bd4b400c0dd347d6 Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Wed, 13 Mar 2024 11:02:09 +0900 Subject: [PATCH] =?UTF-8?q?watchdog-go:=20ci=E3=82=92=E3=83=9E=E3=83=BC?= =?UTF-8?q?=E3=82=B8=E5=BE=8C=E3=81=AB=E8=A1=8C=E3=81=88=E3=82=8B=E3=82=88?= =?UTF-8?q?=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/watchdog-build.yaml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.gitea/workflows/watchdog-build.yaml b/.gitea/workflows/watchdog-build.yaml index 5aad66b..8afeb9b 100644 --- a/.gitea/workflows/watchdog-build.yaml +++ b/.gitea/workflows/watchdog-build.yaml @@ -1,21 +1,13 @@ on: pull_request: types: - - opened - - synchronize - - labeled + - closed workflow_dispatch: permissions: pull-requests: read 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: runs-on: ubuntu-latest container: @@ -23,12 +15,8 @@ jobs: defaults: run: working-directory: ./watchdog-go - if: | - ((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') + if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name,'watchdog-go') + steps: - uses: actions/checkout@v3