Skip to content

Commit cd6f2ee

Browse files
committed
fix: ci deploy always dry-run
1 parent 09672e0 commit cd6f2ee

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
git push --tags
2828
2929
- name: (dry-run) Get CHANGELOG
30-
if: ${{ github.event.inputs.dry_run }}
30+
if: ${{ github.event.inputs.dry_run == 'true' }}
3131
id: changelog-dry-run
3232
uses: requarks/changelog-action@v1.10.2
3333
with:
@@ -37,19 +37,19 @@ jobs:
3737
tag: ${{ github.event.inputs.version_tag }}
3838

3939
- name: (dry-run) Display CHANGELOG
40-
if: ${{ github.event.inputs.dry_run }}
40+
if: ${{ github.event.inputs.dry_run == 'true' }}
4141
run: |
4242
echo '${{ steps.changelog-dry-run.outputs.changes }}'
4343
echo '${{ steps.changelog-dry-run.outputs.changes }}' > "$GITHUB_STEP_SUMMARY"
4444
4545
- name: (dry-run) Remove temporary version tag
46-
if: ${{ github.event.inputs.dry_run }}
46+
if: ${{ github.event.inputs.dry_run == 'true' }}
4747
run: |
4848
git tag -d ${{ github.event.inputs.version_tag }}
4949
git push origin --delete ${{ github.event.inputs.version_tag }}
5050
5151
- name: Update CHANGELOG
52-
if: ${{ !github.event.inputs.dry_run }}
52+
if: ${{ github.event.inputs.dry_run == 'false' }}
5353
id: changelog
5454
uses: requarks/changelog-action@v1.10.2
5555
with:
@@ -60,7 +60,7 @@ jobs:
6060
changelogFilePath: docs/CHANGELOG.md
6161

6262
- name: Commit docs/CHANGELOG.md and update tag
63-
if: ${{ !github.event.inputs.dry_run }}
63+
if: ${{ github.event.inputs.dry_run == 'false' }}
6464
run: |
6565
git tag -d ${{ github.event.inputs.version_tag }}
6666
git push origin --delete ${{ github.event.inputs.version_tag }}
@@ -71,7 +71,7 @@ jobs:
7171
git push --tags
7272
7373
- name: Create Release
74-
if: ${{ !github.event.inputs.dry_run }}
74+
if: ${{ github.event.inputs.dry_run == 'false' }}
7575
uses: ncipollo/release-action@v1.14.0
7676
with:
7777
allowUpdates: true
@@ -82,13 +82,13 @@ jobs:
8282
body: ${{ steps.changelog.outputs.changes }}
8383

8484
- name: Set up Python
85-
if: ${{ !github.event.inputs.dry_run }}
85+
if: ${{ github.event.inputs.dry_run == 'false' }}
8686
uses: actions/setup-python@v5
8787
id: setup-python
8888
with:
8989
python-version-file: pyproject.toml
9090
- name: Run mkdocs
91-
if: ${{ !github.event.inputs.dry_run }}
91+
if: ${{ github.event.inputs.dry_run == 'false' }}
9292
run: |
9393
pip3 install uv
9494
uv venv

0 commit comments

Comments
 (0)