Skip to content

Commit

Permalink
env cannot cross job
Browse files Browse the repository at this point in the history
  • Loading branch information
LemonNekoGH committed Feb 10, 2025
1 parent e410986 commit e584bfb
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/release-tamagotchi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,6 @@ on:
- 'tamagotchi/v*'

jobs:
remove-version-prefix:
name: Remove Version Prefix
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Remove Version Prefix
run: |
version=$(echo "${{ github.ref_name }}" | sed 's/tamagotchi\/v//')
echo "Version: $version"
echo "VERSION=$version" >> $GITHUB_ENV
build-tamagotchi:
name: Build Tamagotchi
needs: remove-version-prefix
Expand All @@ -35,7 +22,7 @@ jobs:
artifact: dmg
- os: ubuntu-latest
platform: linux
arch: x64
arch: x86_64
artifact: AppImage
- os: ubuntu-24.04-arm
platform: linux
Expand All @@ -47,6 +34,12 @@ jobs:
artifact: exe
runs-on: ${{ matrix.os }}
steps:
- name: Remove Version Prefix
run: |
version=$(echo "${{ github.ref_name }}" | sed 's/tamagotchi\/v//')
echo "Version: $version"
echo "VERSION=$version" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v4

Expand Down Expand Up @@ -96,6 +89,12 @@ jobs:
runs-on: ubuntu-24.04
needs: build-tamagotchi
steps:
- name: Remove Version Prefix
run: |
version=$(echo "${{ github.ref_name }}" | sed 's/tamagotchi\/v//')
echo "Version: $version"
echo "VERSION=$version" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v4

Expand Down

0 comments on commit e584bfb

Please sign in to comment.