File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 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-
2118jobs :
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"
You can’t perform that action at this time.
0 commit comments