@@ -60,46 +60,20 @@ defaults:
6060
6161jobs :
6262
63- # JOB: inputs #######################################################################
64-
65- # Regularize the inputs so they can be referenced the same way whether they are
66- # the result of a workflow_dispatch or a workflow_call
67-
68- inputs :
69- runs-on : ubuntu-latest
70- outputs :
71- draft : ${{ steps.one.outputs.draft }}
72- force : ${{ steps.one.outputs.force }}
73- steps :
74- - id : one
75- run : >
76- if [ '${{ toJSON(inputs) }}' = 'null' ];
77- then
78- echo "workflow_dispatch";
79- echo "draft=${{ github.event.inputs.draft }}" >> $GITHUB_OUTPUT;
80- echo "force=${{ github.event.inputs.force }}" >> $GITHUB_OUTPUT;
81- else
82- echo "workflow_call";
83- echo "draft=${{ inputs.draft }}" >> $GITHUB_OUTPUT;
84- echo "force=${{ inputs.force }}" >> $GITHUB_OUTPUT;
85- fi
86-
87-
8863# JOB: sentry #######################################################################
8964
9065 # Use sentry-action to determine if this release has already been built
9166 # based on the latest commit to the repo
9267
9368 sentry :
94- needs : inputs
9569 runs-on : ubuntu-latest
9670 outputs :
9771 release_not_built : ${{ steps.check.outputs.release_not_built }}
9872
9973 steps :
10074 # Checkout the actions for this repo owner
10175 - name : Checkout Actions
102- uses : actions/checkout@v3
76+ uses : actions/checkout@v4
10377 with :
10478 repository : ${{ github.repository_owner }}/.github
10579 path : ./Actions_${{ github.sha }}
@@ -133,23 +107,23 @@ jobs:
133107 artifacts_filename_template : ${{ steps.job_outputs.outputs.ARTIFACTS_FILENAME_TEMPLATE }}
134108 release_url : ${{ steps.push.outputs.html_url }}
135109
136- needs : [inputs, sentry]
110+ needs : [sentry]
137111 if : |
138112 needs.sentry.outputs.release_not_built == 'true'
139- || needs. inputs.outputs .force == 'true'
113+ || inputs.force == 'true'
140114
141115 steps :
142116 # Checkout the actions for this repo owner
143117 - name : Checkout Actions
144- uses : actions/checkout@v3
118+ uses : actions/checkout@v4
145119 with :
146120 repository : ${{ github.repository_owner }}/.github
147121 path : ./Actions_${{ github.sha }}
148122 - run : mv ./Actions_${{ github.sha }}/actions ../actions && rm -rf ./Actions_${{ github.sha }}
149123
150124 # Checkout latest commit
151125 - name : Checkout Medley
152- uses : actions/checkout@v3
126+ uses : actions/checkout@v4
153127
154128 # Setup release tag
155129 - name : Setup Release Tag
@@ -163,7 +137,7 @@ jobs:
163137 id : maiko
164138 run : |
165139 tag=""
166- if [ "${{ needs. inputs.outputs .draft }}" = "true" ];
140+ if [ "${{ inputs.draft }}" = "true" ];
167141 then
168142 gh release list --repo ${{ github.repository_owner }}/maiko | grep Draft >/tmp/releases-$$
169143 if [ $? -eq 0 ];
@@ -219,7 +193,7 @@ jobs:
219193
220194 # Checkout Notecards and tar it in the tarballsdir
221195 - name : Checkout Notecards
222- uses : actions/checkout@v3
196+ uses : actions/checkout@v4
223197 with :
224198 repository : ${{ github.repository_owner }}/notecards
225199 path : ./notecards
@@ -262,14 +236,14 @@ jobs:
262236 ${{ env.TARBALL_DIR }}/${{ env.MEDLEY_RELEASE_TAG }}-loadups.tgz,
263237 ${{ env.TARBALL_DIR }}/${{ env.MEDLEY_RELEASE_TAG }}-runtime.tgz
264238 tag : ${{ env.MEDLEY_RELEASE_TAG }}
265- draft : ${{ needs. inputs.outputs .draft }}
239+ draft : ${{ inputs.draft }}
266240 prerelease : false
267241 generateReleaseNotes : true
268242 token : ${{ secrets.GITHUB_TOKEN }}
269243
270244 # Save the tarball directory for subsequent jobs
271245 - name : Save tarballs
272- uses : actions/upload-artifact@v3
246+ uses : actions/upload-artifact@v4
273247 with :
274248 name : tarballs
275249 path : ${{ env.TARBALL_DIR }}
@@ -285,16 +259,16 @@ jobs:
285259
286260 runs-on : ubuntu-latest
287261
288- needs : [inputs, sentry, loadup]
262+ needs : [sentry, loadup]
289263 if : |
290264 needs.sentry.outputs.release_not_built == 'true'
291- || needs. inputs.outputs .force == 'true'
265+ || inputs.force == 'true'
292266
293267 steps :
294268
295269 # Checkout latest commit
296270 - name : Checkout Medley
297- uses : actions/checkout@v3
271+ uses : actions/checkout@v4
298272
299273 # Environment variables
300274 - name : Environment variables
@@ -311,7 +285,7 @@ jobs:
311285
312286 # Get the tarballs
313287 - name : Get tarballs
314- uses : actions/download-artifact@v3
288+ uses : actions/download-artifact@v4
315289 with :
316290 name : tarballs
317291 path : ${{ env.TARBALL_DIR }}
@@ -345,7 +319,7 @@ jobs:
345319 mv medley-full-linux-x86_64-*.tgz medley.tgz
346320
347321 - name : Save medley tar for use in cygwin installers
348- uses : actions/upload-artifact@v3
322+ uses : actions/upload-artifact@v4
349323 with :
350324 name : medley-tar
351325 path : |
@@ -361,10 +335,10 @@ jobs:
361335
362336 runs-on : macos-12
363337
364- needs : [inputs, sentry, loadup]
338+ needs : [sentry, loadup]
365339 if : |
366340 needs.sentry.outputs.release_not_built == 'true'
367- || needs. inputs.outputs .force == 'true'
341+ || inputs.force == 'true'
368342# if: false
369343
370344 defaults :
@@ -375,7 +349,7 @@ jobs:
375349
376350 # Checkout latest commit
377351 - name : Checkout Medley
378- uses : actions/checkout@v3
352+ uses : actions/checkout@v4
379353
380354 # Environment variables
381355 - name : Environment variables
@@ -392,7 +366,7 @@ jobs:
392366
393367 # Get the tarballs
394368 - name : Get tarballs
395- uses : actions/download-artifact@v3
369+ uses : actions/download-artifact@v4
396370 with :
397371 name : tarballs
398372 path : ${{ env.TARBALL_DIR }}
@@ -432,10 +406,10 @@ jobs:
432406
433407 runs-on : windows-2022
434408
435- needs : [inputs, sentry, loadup, linux_installer]
409+ needs : [sentry, loadup, linux_installer]
436410 if : |
437411 needs.sentry.outputs.release_not_built == 'true'
438- || needs. inputs.outputs .force == 'true'
412+ || inputs.force == 'true'
439413
440414 outputs :
441415 cygwin_installer : ${{ steps.compile_iss.outputs.CYGWIN_INSTALLER }}
@@ -444,7 +418,7 @@ jobs:
444418
445419 # Checkout latest commit
446420 - name : Checkout Medley
447- uses : actions/checkout@v3
421+ uses : actions/checkout@v4
448422
449423 # Store the values output from loadup job as environment variables
450424 - name : Environment Variables
@@ -463,7 +437,7 @@ jobs:
463437
464438 # Retrieve medley tars from artifact store
465439 - name : Retrieve medley tar
466- uses : actions/download-artifact@v3
440+ uses : actions/download-artifact@v4
467441 with :
468442 name : medley-tar
469443 path : installers/cygwin/
@@ -535,10 +509,10 @@ jobs:
535509
536510 runs-on : ubuntu-latest
537511
538- needs : [inputs, sentry, loadup, linux_installer, macos_installer, cygwin_installer]
512+ needs : [sentry, loadup, linux_installer, macos_installer, cygwin_installer]
539513 if : |
540514 needs.sentry.outputs.release_not_built == 'true'
541- || needs. inputs.outputs .force == 'true'
515+ || inputs.force == 'true'
542516
543517 steps :
544518
@@ -556,7 +530,7 @@ jobs:
556530
557531 # Checkout latest commit
558532 - name : Checkout Medley
559- uses : actions/checkout@v3
533+ uses : actions/checkout@v4
560534
561535
562536 # Upload a dummy file to release
@@ -587,7 +561,7 @@ jobs:
587561 local_template="installers/downloads_page/medley_downloads.html"
588562 local_filename="medley_downloads.html"
589563 local_manpath="docs/man-page/man_medley.html"
590- if [ "${{ needs. inputs.outputs .draft }}" = "true" ];
564+ if [ "${{ inputs.draft }}" = "true" ];
591565 then
592566 remote_filename="draft_downloads"
593567 remote_manname="man_draft.html"
@@ -637,19 +611,19 @@ jobs:
637611 outputs :
638612 build_successful : ${{ steps.output.outputs.build_successful }}
639613
640- needs : [inputs, sentry, loadup, downloads_page]
614+ needs : [sentry, loadup, downloads_page]
641615
642616 steps :
643617 # Delete the tarballs artifact
644618 - name : Delete tarballs artifact
645- uses : geekyeggo/delete-artifact@v2
619+ uses : geekyeggo/delete-artifact@v5
646620 with :
647621 name : tarballs
648622 failOnError : false
649623
650624 # Checkout the actions for this repo owner
651625 - name : Checkout Actions
652- uses : actions/checkout@v3
626+ uses : actions/checkout@v4
653627 with :
654628 repository : ${{ github.repository_owner }}/.github
655629 path : ./Actions_${{ github.sha }}
0 commit comments