diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5470ca19..e1dfb920 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,10 +15,12 @@ jobs: runs-on: ubuntu-latest if: | ${{ github.event.workflow_run.conclusion == 'success' }} && - ${{ github.ref_name == 'master' }} + ${{ github.event.workflow_run.head_branch == 'master' }} env: DOCKER_REGISTRY_USERNAME: ${{ secrets.DOCKER_REGISTRY_USERNAME }} DOCKER_REGISTRY_PASSWORD: ${{ secrets.DOCKER_REGISTRY_PASSWORD }} + CHATWORK_API_TOKEN: ${{ secrets.CHATWORK_API_TOKEN }} + CHATWORK_NOTIFICATION_ROOM_ID: ${{ secrets.CHATWORK_NOTIFICATION_ROOM_ID}} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - name: Dump GitHub context