Skip to content

Commit 29d57cf

Browse files
committed
Fix changelog CI job conditions
1 parent 08f2088 commit 29d57cf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,15 +242,20 @@ jobs:
242242
###########
243243

244244
changelog:
245-
if: ${{ startsWith(github.ref, 'refs/tags/') }}
245+
if: ${{ startsWith(github.ref, 'refs/tags/')
246+
|| github.ref_name == 'main'
247+
|| (github.event_name == 'pull_request'
248+
&& github.event.pull_request.head.repo.owner.login == 'instrumentisto') }}
246249
runs-on: ubuntu-latest
247250
steps:
248251
- uses: actions/checkout@v4
252+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
249253

250254
- name: Parse release version
251255
id: release
252256
run: echo "version=${GITHUB_REF#refs/tags/}"
253257
>> $GITHUB_OUTPUT
258+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
254259

255260
- name: Ensure CHANGELOG date is today
256261
run: |
@@ -261,6 +266,7 @@ jobs:
261266
echo "Changelog: $changelog"
262267
echo "Today: $today"
263268
[ "$changelog" = "$today" ]
269+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
264270

265271
test-flutter:
266272
name: test (example, ${{ matrix.platform }})

0 commit comments

Comments
 (0)