Skip to content

Commit

Permalink
Add the ability to execute arbitrary commands just before the final s…
Browse files Browse the repository at this point in the history
…tages of packaging
  • Loading branch information
borkweb committed Apr 25, 2024
1 parent 6a8509d commit 1b4ab30
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ on:
default: 'yes'
required: false
type: string
additional_commands:
description: 'Execute additional commands'
default: ''
required: false
type: string
slack_channel:
description: 'Slack channel ID to post to'
required: false
Expand Down Expand Up @@ -156,9 +161,13 @@ jobs:
run: composer -- pup build

- name: pup check
if: steps.s3_zip_exists.outcome != 'success' && inputs.production == 'yes'&& inputs.check == 'yes'
if: steps.s3_zip_exists.outcome != 'success' && inputs.production == 'yes' && inputs.check == 'yes'
run: composer -- pup check

- name: pup workflows
if: steps.s3_zip_exists.outcome != 'success' && inputs.additional_commands != ''
run: ${{ inputs.additional_commands }}

- name: pup i18n
if: steps.s3_zip_exists.outcome != 'success' && inputs.i18n == 'yes'
run: composer -- pup i18n
Expand Down

0 comments on commit 1b4ab30

Please sign in to comment.