Skip to content

Commit

Permalink
GHA: Fixes platform workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Feb 13, 2024
1 parent 9dc60fa commit 6ab4115
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/platform.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
name: Platform
name: Platform (Linux)

env:
ARTIFACT_NAME: ${{ inputs.artifact || 'platform' }}
CHECKOUT_REF: ${{ inputs.ref || 'dev' }}
CLEANUP: ${{ inputs.cleanup || true }}
REPOSITORY: EA31337/ansible-role-metatrader
VERSION: ${{ inputs.version || 5 }}
WORKDIR: ${{ inputs.workdir || github.workspace }}

# yamllint disable-line rule:truthy
on:
Expand All @@ -26,6 +26,11 @@ on:
description: Artifact name
required: false
type: string
cleanup:
default: false
description: Whether to run clean-up job
required: false
type: boolean
ref:
default: dev
description: The branch, tag or SHA to checkout.
Expand All @@ -35,19 +40,10 @@ on:
default: 5
description: Version to install
type: number
workdir:
default: ${{ github.workspace }}
description: Working directory
required: false
type: string
outputs:
workdir:
description: Working directory
value: ${{ jobs.platform-linux.outputs.workdir }}

jobs:
platform-linux:
name: Platform (Linux)
name: Platform
outputs:
workdir: ${{ github.workspace }}
runs-on: ubuntu-latest
Expand Down Expand Up @@ -78,11 +74,11 @@ jobs:
~/.wine/drive_c/Program Files*/**/*Meta*
timeout-minutes: 20
cleanup:
if: ${{ github.event_name != 'workflow_call' }}
name: Clean-up
needs: [platform-linux]
runs-on: ubuntu-latest
steps:
- uses: geekyeggo/delete-artifact@v4
if: env.CLEANUP && github.repository == env.REPOSITORY
with:
name: ${{ env.ARTIFACT_NAME }}

0 comments on commit 6ab4115

Please sign in to comment.