Skip to content

Commit 8aa3fb2

Browse files
authored
Merge pull request #9 from kc-vl/kc-vl/publish-ci-workflow-refactoring
chore: workflows refactoring
2 parents c5d3a08 + bdc6700 commit 8aa3fb2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Continuous integration
22
on:
33
pull_request:
4+
workflow_call:
45
push:
56
branches: ['main'] # ['**']
67
tags: [v*]
@@ -21,7 +22,6 @@ jobs:
2122
- name: Mount bazel cache
2223
uses: actions/cache@v4
2324
with:
24-
save-always: true
2525
path: |
2626
~/.cache/bazel
2727
key: ${{ matrix.os }}-bazel-ci-cache

.github/workflows/publish.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@ on:
44
types: [created]
55
branches: [main, temporary-main]
66
jobs:
7+
tests:
8+
uses: ./.github/workflows/ci.yaml
79
publish:
810
runs-on: ubuntu-latest
11+
needs: [tests]
912
steps:
1013
- uses: actions/checkout@v4
1114
- uses: bazelbuild/setup-bazelisk@v3
1215
- name: Mount bazel cache
1316
uses: actions/cache@v4
1417
with:
15-
save-always: true
1618
path: |
1719
~/.cache/bazel
1820
key: ubuntu-latest-bazel-ci-cache

0 commit comments

Comments
 (0)