|
17 | 17 | required: false |
18 | 18 | type: string |
19 | 19 | default: "info" |
| 20 | + nightly: |
| 21 | + description: Runs nightly targets |
| 22 | + required: false |
| 23 | + type: boolean |
| 24 | + default: false |
20 | 25 | secrets: |
21 | 26 | earthly_token: |
22 | 27 | description: Optional Earthly token used to login to Earthly cloud during local builds of Forge CLI |
|
30 | 35 | FORGE_REGEX_DOCS: ^docs(-.*)?$ |
31 | 36 | FORGE_REGEX_RELEASE: ^release(-.*)?$ |
32 | 37 | FORGE_REGEX_PUBLISH: ^publish(-.*)?$ |
| 38 | + FORGE_REGEX_NIGHTLY: ^nightly(-.*)?$ |
33 | 39 |
|
34 | 40 | jobs: |
35 | 41 | discover: |
|
78 | 84 | ${{ env.FORGE_REGEX_DOCS }} |
79 | 85 | ${{ env.FORGE_REGEX_RELEASE }} |
80 | 86 | ${{ env.FORGE_REGEX_PUBLISH }} |
81 | | -
|
| 87 | + ${{ env.FORGE_REGEX_NIGHTLY }} |
82 | 88 | check: |
83 | 89 | uses: input-output-hk/catalyst-forge/.github/workflows/run.yml@master |
84 | 90 | needs: [discover] |
@@ -127,6 +133,18 @@ jobs: |
127 | 133 | secrets: |
128 | 134 | earthly_token: ${{ secrets.earthly_token }} |
129 | 135 |
|
| 136 | + nightly: |
| 137 | + uses: input-output-hk/catalyst-forge/.github/workflows/run.yml@master |
| 138 | + needs: [discover, check, build, package] |
| 139 | + if: (fromJson(needs.discover.outputs.earthfiles)['^nightly(-.*)?$'] != null) && !failure() && !cancelled() && inputs.nightly == true |
| 140 | + with: |
| 141 | + earthfiles: ${{ toJson(fromJson(needs.discover.outputs.earthfiles)['^nightly(-.*)?$']) }} |
| 142 | + forge_version: ${{ inputs.forge_version }} |
| 143 | + local: ${{ inputs.local }} |
| 144 | + verbosity: ${{ inputs.verbosity }} |
| 145 | + secrets: |
| 146 | + earthly_token: ${{ secrets.earthly_token }} |
| 147 | + |
130 | 148 | docs: |
131 | 149 | uses: input-output-hk/catalyst-forge/.github/workflows/docs.yml@master |
132 | 150 | needs: [discover, check, build, test] |
@@ -162,7 +180,7 @@ jobs: |
162 | 180 | earthly_token: ${{ secrets.earthly_token }} |
163 | 181 |
|
164 | 182 | final: |
165 | | - needs: [check, build, package, test, release, deploy] |
| 183 | + needs: [check, build, package, test, nightly, release, deploy] |
166 | 184 | if: ${{ always() && (contains(needs.*.result, 'failure') || !failure() && !cancelled()) }} |
167 | 185 | runs-on: ubuntu-latest |
168 | 186 | steps: |
|
0 commit comments