Skip to content

Commit 5b260d1

Browse files
authored
Merge pull request #4 from codex-team/ci3
Rename CI workflow and trigger publish on push
2 parents ce16661 + 80df8fb commit 5b260d1

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
name: CI
1+
name: Lint Test Build
22

33
on:
44
push:
5+
branches-ignore: [main]
56

67
jobs:
78
check-lint-test-build:

.github/workflows/publish.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,23 @@
11
name: Publish
22

33
on:
4-
workflow_run:
5-
workflows: [CI]
6-
types: [completed]
4+
push:
75
branches: [main]
86

97
jobs:
108
publish:
11-
if: github.event.workflow_run.conclusion == 'success'
129
runs-on: ubuntu-22.04
1310
steps:
1411
- name: Checkout repository
1512
uses: actions/checkout@v6
1613
with:
17-
ref: ${{ github.event.workflow_run.head_sha }}
1814
fetch-depth: 0
1915

2016
- name: Detect changed packages
2117
id: changes
2218
uses: dorny/paths-filter@v3
2319
with:
24-
base: HEAD^
20+
base: ${{ github.event.before || 'HEAD^' }}
2521
filters: |
2622
utils:
2723
- 'packages/utils/**'

0 commit comments

Comments
 (0)