Skip to content
This repository was archived by the owner on Jan 11, 2024. It is now read-only.

Commit 4cde13a

Browse files
committed
ci: handle cd job condition to allow run when ci skipped in manual release
1 parent 755380e commit 4cde13a

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,13 @@ jobs:
146146

147147
cd:
148148
name: Build and Publish
149-
if: (github.event_name == 'push' && needs.ci.outputs.release == 'true') || (github.event_name == 'workflow_dispatch' && github.event.inputs.release == 'true')
149+
if: |
150+
(github.event_name == 'push' && needs.ci.outputs.release == 'true') ||
151+
(always() &&
152+
github.event_name == 'workflow_dispatch' &&
153+
github.event.inputs.release == 'true' &&
154+
(needs.analyze.result == 'success' || needs.analyze.result == 'skipped') &&
155+
(needs.ci.result == 'success' || needs.ci.result == 'skipped'))
150156
needs: [ci, analyze, swift-package-test, xcode-test, cocoapods-test]
151157
runs-on: macos-12
152158

@@ -167,7 +173,7 @@ jobs:
167173
uses: TriPSs/conventional-changelog-action@v3
168174
with:
169175
github-token: ${{ github.token }}
170-
git-message: 'chore(CHANGELOG): update for {version}'
176+
git-message: 'chore(CHANGELOG): [skip ci]update for {version}'
171177
git-user-name: ${{ github.actor }}
172178
git-user-email: soumya.mahunt@gmail.com
173179
skip-version-file: true

0 commit comments

Comments
 (0)