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