diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2dce6a9..4947f31 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -75,6 +75,7 @@ jobs: - name: Cleanup pre-releases uses: actions/github-script@v7.0.1 + if: ${{ github.event.pull_request.merged == true }} with: github-token: ${{ secrets.GITHUB_TOKEN }} script: |+ @@ -101,6 +102,7 @@ jobs: console.log('end run') - name: Split archive file. + if: ${{ github.event.pull_request.merged == true }} run: |+ set -eux @@ -113,6 +115,7 @@ jobs: - name: Pre-Release uses: softprops/action-gh-release@v2 + if: ${{ github.event.pull_request.merged == true }} with: name: devtool-WSL2 image ${{ env.COMMIT_SHORT_SHA }} tag_name: ${{ env.COMMIT_SHORT_SHA }}