Skip to content

Commit 037355d

Browse files
committed
clean up success indicator
1 parent 7de7c0b commit 037355d

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ on:
1515
types:
1616
- released
1717

18-
env:
19-
PUBLISH_TO_FLAKEHUB: ${{ !github.repository.fork && (github.ref == format('refs/heads/{0}', github.event.repository.default_branch) || startsWith(github.ref, 'refs/tags/')) }}
20-
2118
jobs:
2219
checks:
2320
runs-on: ubuntu-latest
@@ -60,20 +57,24 @@ jobs:
6057
nix flake lock
6158
git diff --exit-code
6259
60+
success:
61+
needs: [checks, test-modules]
62+
runs-on: ubuntu-latest
63+
steps:
64+
- run: true
65+
6366
publish:
67+
if: !github.repository.fork && (github.ref == format('refs/heads/{0}', github.event.repository.default_branch) || startsWith(github.ref, 'refs/tags/'))
6468
environment: ${{ github.event_name == 'release' && 'production' || '' }}
65-
needs: [checks, test-modules]
69+
needs: [success]
6670
runs-on: ubuntu-latest
6771
permissions:
6872
contents: read
6973
id-token: write
7074
steps:
7175
- uses: actions/checkout@v4
72-
if: fromJson(env.PUBLISH_TO_FLAKEHUB)
7376
- uses: DeterminateSystems/nix-installer-action@main
74-
if: fromJson(env.PUBLISH_TO_FLAKEHUB)
7577
- uses: "DeterminateSystems/flakehub-push@main"
76-
if: fromJson(env.PUBLISH_TO_FLAKEHUB)
7778
with:
7879
rolling: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
7980
visibility: "unlisted"

0 commit comments

Comments
 (0)