Skip to content

Commit 3f7db18

Browse files
committed
Fixed the condition
1 parent 449772d commit 3f7db18

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release_prepare.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
# Alembic migration file
7575
- name: Run Alembic merge
7676
# Only run this part once when the release branch is created
77-
if: !github.event.created
77+
if: ${{ !github.event.created }}
7878
shell: bash
7979
run: |
8080
alembic merge -m "Release" heads --rev-id ${{ needs.fetch-versions.outputs.new_version }}
@@ -103,7 +103,7 @@ jobs:
103103
# Generate and append release notes
104104
- name: Generate release notes
105105
# Only run this part once when the release branch is created
106-
if: !github.event.created
106+
if: ${{ !github.event.created }}
107107
run: |
108108
RELEASE_NOTES=$(gh api repos/${{ github.repository }}/releases/generate-notes -F tag_name=${{ needs.fetch-versions.outputs.new_version }} -F target_commitish=${{ github.sha }} -F previous_tag_name=${{ needs.fetch-versions.outputs.old_version }} | jq -r '.body')
109109
{
@@ -124,7 +124,7 @@ jobs:
124124
# Create a PR
125125
- name: Create a pull request
126126
# Only run this part once when the release branch is created
127-
if: !github.event.created
127+
if: ${{ !github.event.created }}
128128
run: |
129129
gh pr create --base "develop" --head "${{ github.ref }}" \
130130
--title "Prepare release ${{ needs.fetch-versions.outputs.new_version }}" \
@@ -133,7 +133,7 @@ jobs:
133133
# Send a message to Discord to alert everyone for the release
134134
- name: Send message to Discord
135135
# Only run this part once when the release branch is created
136-
if: !github.event.created
136+
if: ${{ !github.event.created }}
137137
run: |
138138
curl -X POST \
139139
-H "Content-Type: application/json" \

0 commit comments

Comments
 (0)