Skip to content

Commit dbec28d

Browse files
committed
test: workflow dependency
1 parent ad86a53 commit dbec28d

2 files changed

Lines changed: 16 additions & 4 deletions

File tree

.github/workflows/codeChecks.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: code checks
2+
name: CodeChecks
33
on:
44
push:
55
paths:
@@ -10,7 +10,9 @@ on:
1010
- "pkg/**"
1111
- "*.go"
1212
- "go.*"
13+
1314
jobs:
15+
1416
code_checks:
1517

1618
runs-on: ubuntu-latest
@@ -44,11 +46,16 @@ jobs:
4446
work-dir: .
4547

4648
- uses: cachix/install-nix-action@v31
49+
with:
50+
github_access_token: ${{ secrets.GH_GORELEASER_TOKEN }}
51+
4752
- uses: cachix/cachix-action@v16
4853
with:
4954
name: devenv
55+
5056
- name: Install devenv.sh
5157
run: nix profile add nixpkgs#devenv
5258

5359
- name: Build the devenv shell and run any pre-commit hooks
5460
run: devenv test
61+
timeout-minutes: 15

.github/workflows/release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
---
2-
name: release
2+
name: Release
33
on:
44
push:
55
tags:
66
- "*"
7+
workflow_run:
8+
workflows: [CodeChecks]
9+
branches: [main]
10+
types:
11+
- completed
12+
713
permissions:
814
contents: write
15+
916
jobs:
1017

1118
goreleaser:
1219

13-
needs: code_checks
14-
1520
runs-on: ubuntu-latest
1621
strategy:
1722
matrix:

0 commit comments

Comments
 (0)