Skip to content

Commit

Permalink
Simplify the ref handling
Browse files Browse the repository at this point in the history
  • Loading branch information
borkweb committed Apr 18, 2024
1 parent 92bbca6 commit a54c86f
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,26 +49,18 @@ jobs:
token: ${{ secrets.GH_BOT_TOKEN }}
submodules: recursive

# ------------------------------------------------------------------------------
# Prepare job variables.
# ------------------------------------------------------------------------------
- name: Prepare job variables
run: |
echo "JOB_REF=${{ inputs.ref }}" >> $GITHUB_ENV
echo "branch=${JOB_REF}" >> $GITHUB_OUTPUT
# ------------------------------------------------------------------------------
# Pup and filename setup.
# ------------------------------------------------------------------------------
- name: install pup
run: composer -- pup

- name: get version
if: inputs.production
if: ${{ inputs.production == true }}
run: echo "VERSION=$(composer -- pup get-version)" >> $GITHUB_ENV

- name: get dev version
if: ${{ !inputs.production }}
if: ${{ inputs.production == false }}
run: echo "VERSION=$(composer -- pup get-version --dev)" >> $GITHUB_ENV

- name: get zip name
Expand All @@ -79,7 +71,7 @@ jobs:
# ------------------------------------------------------------------------------
- name: Check if zip already exists
uses: the-events-calendar/action-s3-utility@main
if: ${{ !inputs.production }}
if: ${{ inputs.production == false }}
id: s3_zip_exists
continue-on-error: true
env:
Expand Down

0 comments on commit a54c86f

Please sign in to comment.