mirror of
https://github.com/mas-cli/mas
synced 2024-11-25 04:50:24 +00:00
🚩 Default DRY_RUN to true
This commit is contained in:
parent
cc07b31d92
commit
e30cacbdf2
1 changed files with 5 additions and 6 deletions
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
|
@ -15,6 +15,8 @@ on:
|
|||
jobs:
|
||||
release:
|
||||
runs-on: macos-14
|
||||
env:
|
||||
DRY_RUN: true
|
||||
steps:
|
||||
|
||||
# Logs event details and sets `DRY_RUN` env var
|
||||
|
@ -26,11 +28,6 @@ jobs:
|
|||
echo "release.name: ${{ github.event.release.name }}"
|
||||
echo "release.body: ${{ github.event.release.body }}"
|
||||
echo "DRY_RUN=false" >>$GITHUB_ENV
|
||||
- name: 🚩 Enable dry run
|
||||
if: ${{ github.event.release.name == '' }}
|
||||
run: |
|
||||
echo "dry run"
|
||||
echo "DRY_RUN=true" >> $GITHUB_ENV
|
||||
- name: 🔈 Log dry run
|
||||
run: |
|
||||
echo "DRY_RUN: ${DRY_RUN}"
|
||||
|
@ -50,6 +47,7 @@ jobs:
|
|||
run: script/package
|
||||
- name: 🚀 Upload mas.pkg
|
||||
uses: actions/upload-artifact@v3
|
||||
if: ${{ env.DRY_RUN == 'false' }}
|
||||
with:
|
||||
if-no-files-found: error
|
||||
name: mas.pkg
|
||||
|
@ -59,6 +57,7 @@ jobs:
|
|||
run: script/bottle
|
||||
- name: 🚀 Upload Bottles
|
||||
uses: actions/upload-artifact@v3
|
||||
if: ${{ env.DRY_RUN == 'false' }}
|
||||
with:
|
||||
if-no-files-found: error
|
||||
name: homebrew-bottles
|
||||
|
|
Loading…
Reference in a new issue