Skip to content

Commit

Permalink
update: if pull_request == true
Browse files Browse the repository at this point in the history
  • Loading branch information
naa0yama committed Jul 28, 2024
1 parent 9fa2b1d commit c5513b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |+
Expand All @@ -101,6 +102,7 @@ jobs:
console.log('end run')
- name: Split archive file.
if: ${{ github.event.pull_request.merged == true }}
run: |+
set -eux
Expand All @@ -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 }}
Expand Down

0 comments on commit c5513b6

Please sign in to comment.