Skip to content

Commit

Permalink
Fix version in pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Dextinfire committed Jan 18, 2025
1 parent d7d7d7e commit bf5b3ad
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ jobs:
runs-on: ubuntu-22.04
permissions:
contents: read
outputs:
VERSION: ${{ steps.set-version.outputs.VERSION }}
steps:
- uses: actions/checkout@v4
- name: Set version
run: echo "VERSION=$(cat VERSION)" >> $GITHUB_ENV
id: set-version
run: echo "VERSION=$(cat VERSION)" >> $GITHUB_OUTPUT
lint:
name: Run linters
needs: get-version
permissions:
checks: write
contents: write
Expand Down Expand Up @@ -55,7 +57,9 @@ jobs:
name: ${{ matrix.os_name }}
runs-on: ${{ matrix.os }}
timeout-minutes: 120
needs: lint
needs:
- lint
- get-version
permissions:
contents: read
strategy:
Expand Down Expand Up @@ -86,6 +90,7 @@ jobs:
VCPKG_DEFAULT_TRIPLET: ${{ matrix.triplet }}
vcpkgCommitId: '0f88ecb8528605f91980b90a2c5bad88e3cb565f'
PresetName: ${{ (matrix.os_name == 'android') && 'ci-release-android' || 'ci-release' }}
VERSION: ${{ needs.get-version.outputs.VERSION }}

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -174,11 +179,15 @@ jobs:
switch:
runs-on: ubuntu-latest
timeout-minutes: 120
needs: lint
needs:
- lint
- get-version
permissions:
contents: read
container:
image: ghcr.io/committeeofzero/impacto-switch:latest
env:
VERSION: ${{ needs.get-version.outputs.VERSION }}
steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -217,6 +226,9 @@ jobs:
needs:
- job-matrix
- switch
- get-version
env:
VERSION: ${{ needs.get-version.outputs.VERSION }}
if: needs.job-matrix.result == 'success' && needs.switch.result == 'success' && github.event_name != 'pull_request_target' && ((startsWith(github.ref, 'refs/tags') || github.ref_name == 'master'))
steps:
- uses: actions/download-artifact@v4
Expand Down

0 comments on commit bf5b3ad

Please sign in to comment.