@@ -75,70 +75,69 @@ jobs:
7575 ${{ env.FORGE_REGEX_RELEASE }}
7676 ${{ env.FORGE_REGEX_PUBLISH }}
7777 ${{ env.FORGE_REGEX_NIGHTLY }}
78- # check:
79- # uses: input-output-hk/catalyst-forge/.github/workflows/run.yml@master
80- # needs: [discover]
81- # if: (fromJson(needs.discover.outputs.earthfiles)['^check(-.*)?$'] != null) && !failure() && !cancelled()
82- # with:
83- # earthfiles: ${{ toJson(fromJson(needs.discover.outputs.earthfiles)['^check(-.*)?$']) }}
84- # forge_version: ${{ inputs.forge_version }}
85- # local: ${{ inputs.local }}
86- # verbosity: ${{ inputs.verbosity }}
87- # secrets:
88- # earthly_token: ${{ secrets.earthly_token }}
78+ check :
79+ uses : input-output-hk/catalyst-forge/.github/workflows/run.yml@master
80+ needs : [discover]
81+ if : (fromJson(needs.discover.outputs.earthfiles)['^check(-.*)?$'] != null) && !failure() && !cancelled()
82+ with :
83+ earthfiles : ${{ toJson(fromJson(needs.discover.outputs.earthfiles)['^check(-.*)?$']) }}
84+ forge_version : ${{ inputs.forge_version }}
85+ local : ${{ inputs.local }}
86+ verbosity : ${{ inputs.verbosity }}
87+ secrets :
88+ earthly_token : ${{ secrets.earthly_token }}
8989
90- # build:
91- # uses: input-output-hk/catalyst-forge/.github/workflows/run.yml@master
92- # needs: [discover, check]
93- # if: (fromJson(needs.discover.outputs.earthfiles)['^build(-.*)?$'] != null) && !failure() && !cancelled()
94- # with:
95- # earthfiles: ${{ toJson(fromJson(needs.discover.outputs.earthfiles)['^build(-.*)?$']) }}
96- # forge_version: ${{ inputs.forge_version }}
97- # local: ${{ inputs.local }}
98- # verbosity: ${{ inputs.verbosity }}
99- # secrets:
100- # earthly_token: ${{ secrets.earthly_token }}
90+ build :
91+ uses : input-output-hk/catalyst-forge/.github/workflows/run.yml@master
92+ needs : [discover, check]
93+ if : (fromJson(needs.discover.outputs.earthfiles)['^build(-.*)?$'] != null) && !failure() && !cancelled()
94+ with :
95+ earthfiles : ${{ toJson(fromJson(needs.discover.outputs.earthfiles)['^build(-.*)?$']) }}
96+ forge_version : ${{ inputs.forge_version }}
97+ local : ${{ inputs.local }}
98+ verbosity : ${{ inputs.verbosity }}
99+ secrets :
100+ earthly_token : ${{ secrets.earthly_token }}
101101
102- # package:
103- # uses: input-output-hk/catalyst-forge/.github/workflows/run.yml@master
104- # needs: [discover, check, build]
105- # if: (fromJson(needs.discover.outputs.earthfiles)['^package(-.*)?$'] != null) && !failure() && !cancelled()
106- # with:
107- # earthfiles: ${{ toJson(fromJson(needs.discover.outputs.earthfiles)['^package(-.*)?$']) }}
108- # forge_version: ${{ inputs.forge_version }}
109- # local: ${{ inputs.local }}
110- # verbosity: ${{ inputs.verbosity }}
111- # secrets:
112- # earthly_token: ${{ secrets.earthly_token }}
102+ package :
103+ uses : input-output-hk/catalyst-forge/.github/workflows/run.yml@master
104+ needs : [discover, check, build]
105+ if : (fromJson(needs.discover.outputs.earthfiles)['^package(-.*)?$'] != null) && !failure() && !cancelled()
106+ with :
107+ earthfiles : ${{ toJson(fromJson(needs.discover.outputs.earthfiles)['^package(-.*)?$']) }}
108+ forge_version : ${{ inputs.forge_version }}
109+ local : ${{ inputs.local }}
110+ verbosity : ${{ inputs.verbosity }}
111+ secrets :
112+ earthly_token : ${{ secrets.earthly_token }}
113113
114- # test:
115- # uses: input-output-hk/catalyst-forge/.github/workflows/run.yml@master
116- # needs: [discover, check, build, package]
117- # if: (fromJson(needs.discover.outputs.earthfiles)['^test(-.*)?$'] != null) && !failure() && !cancelled()
118- # with:
119- # earthfiles: ${{ toJson(fromJson(needs.discover.outputs.earthfiles)['^test(-.*)?$']) }}
120- # forge_version: ${{ inputs.forge_version }}
121- # local: ${{ inputs.local }}
122- # verbosity: ${{ inputs.verbosity }}
123- # secrets:
124- # earthly_token: ${{ secrets.earthly_token }}
114+ test :
115+ uses : input-output-hk/catalyst-forge/.github/workflows/run.yml@master
116+ needs : [discover, check, build, package]
117+ if : (fromJson(needs.discover.outputs.earthfiles)['^test(-.*)?$'] != null) && !failure() && !cancelled()
118+ with :
119+ earthfiles : ${{ toJson(fromJson(needs.discover.outputs.earthfiles)['^test(-.*)?$']) }}
120+ forge_version : ${{ inputs.forge_version }}
121+ local : ${{ inputs.local }}
122+ verbosity : ${{ inputs.verbosity }}
123+ secrets :
124+ earthly_token : ${{ secrets.earthly_token }}
125125
126- # nightly:
127- # uses: input-output-hk/catalyst-forge/.github/workflows/run.yml@master
128- # needs: [discover, check, build, package]
129- # if: (fromJson(needs.discover.outputs.earthfiles)['^nightly(-.*)?$'] != null) && !failure() && !cancelled() && inputs.nightly == true
130- # with:
131- # earthfiles: ${{ toJson(fromJson(needs.discover.outputs.earthfiles)['^nightly(-.*)?$']) }}
132- # forge_version: ${{ inputs.forge_version }}
133- # local: ${{ inputs.local }}
134- # verbosity: ${{ inputs.verbosity }}
135- # secrets:
136- # earthly_token: ${{ secrets.earthly_token }}
126+ nightly :
127+ uses : input-output-hk/catalyst-forge/.github/workflows/run.yml@master
128+ needs : [discover, check, build, package]
129+ if : (fromJson(needs.discover.outputs.earthfiles)['^nightly(-.*)?$'] != null) && !failure() && !cancelled() && inputs.nightly == true
130+ with :
131+ earthfiles : ${{ toJson(fromJson(needs.discover.outputs.earthfiles)['^nightly(-.*)?$']) }}
132+ forge_version : ${{ inputs.forge_version }}
133+ local : ${{ inputs.local }}
134+ verbosity : ${{ inputs.verbosity }}
135+ secrets :
136+ earthly_token : ${{ secrets.earthly_token }}
137137
138138 release :
139139 uses : input-output-hk/catalyst-forge/.github/workflows/release.yml@master
140- # needs: [discover, check, build, test]
141- needs : [discover]
140+ needs : [discover, check, build, test]
142141 if : (fromJson(needs.discover.outputs.releases)[0] != null) && !failure() && !cancelled()
143142 with :
144143 releases : ${{ needs.discover.outputs.releases }}
@@ -148,29 +147,29 @@ jobs:
148147 secrets :
149148 earthly_token : ${{ secrets.earthly_token }}
150149
151- # deploy:
152- # uses: input-output-hk/catalyst-forge/.github/workflows/deploy.yml@master
153- # needs: [discover, check, build, test, release]
154- # if: (fromJson(needs.discover.outputs.deployments)[0] != null) && !failure() && !cancelled()
155- # with:
156- # deployments: ${{ needs.discover.outputs.deployments }}
157- # forge_version: ${{ inputs.forge_version }}
158- # local: ${{ inputs.local }}
159- # verbosity: ${{ inputs.verbosity }}
160- # secrets:
161- # earthly_token: ${{ secrets.earthly_token }}
150+ deploy :
151+ uses : input-output-hk/catalyst-forge/.github/workflows/deploy.yml@master
152+ needs : [discover, check, build, test, release]
153+ if : (fromJson(needs.discover.outputs.deployments)[0] != null) && !failure() && !cancelled()
154+ with :
155+ deployments : ${{ needs.discover.outputs.deployments }}
156+ forge_version : ${{ inputs.forge_version }}
157+ local : ${{ inputs.local }}
158+ verbosity : ${{ inputs.verbosity }}
159+ secrets :
160+ earthly_token : ${{ secrets.earthly_token }}
162161
163- # final:
164- # needs: [check, build, package, test, nightly, release, deploy]
165- # if: ${{ always() && (contains(needs.*.result, 'failure') || !failure() && !cancelled()) }}
166- # runs-on: ubuntu-latest
167- # steps:
168- # - name: Final
169- # run: |
170- # if [[ "${{ contains(needs.*.result, 'failure') }}" == "true" ]]
171- # then
172- # echo "Run failed"
173- # exit 1
174- # else
175- # echo "All done"
176- # fi
162+ final :
163+ needs : [check, build, package, test, nightly, release, deploy]
164+ if : ${{ always() && (contains(needs.*.result, 'failure') || !failure() && !cancelled()) }}
165+ runs-on : ubuntu-latest
166+ steps :
167+ - name : Final
168+ run : |
169+ if [[ "${{ contains(needs.*.result, 'failure') }}" == "true" ]]
170+ then
171+ echo "Run failed"
172+ exit 1
173+ else
174+ echo "All done"
175+ fi
0 commit comments