Skip to content

Commit 82b22cf

Browse files
Trying to fix Env vars
1 parent d305db5 commit 82b22cf

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

.github/workflows/create-draft-preview.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ on:
1616
required: true
1717
default: "1.0.0"
1818

19+
env:
20+
PR_NAME: ${{ github.event.inputs.name }}
21+
PR_TAG: ${{ github.event.inputs.tag }}
22+
PR_UPDATER_VERSION: ${{ github.event.inputs.updater_version }}
23+
1924
jobs:
2025
release:
2126
runs-on: ubuntu-latest
2227
permissions:
2328
contents: write
2429

25-
env:
26-
PR_NAME: ${{ github.event.inputs.name }}
27-
PR_TAG: ${{ github.event.inputs.tag }}
28-
UPDATER_VERSION: ${{ github.event.inputs.updater_version }}
29-
3030
steps:
3131
- name: Checkout Repo
3232
uses: actions/checkout@v6
@@ -58,7 +58,7 @@ jobs:
5858
- name: Run Scripts
5959
run: |
6060
./Scripts/build.sh -p
61-
./Scripts/package.sh -p -s $PR_TAG -u $UPDATER_VERSION
61+
./Scripts/package.sh -p -s $PR_TAG -u $PR_UPDATER_VERSION
6262
env:
6363
SPARKLE_PRIVATE_KEY: ${{ secrets.SPARKLE_PRIVATE_KEY }}
6464
SPARKLE_PUBLIC_KEY: ${{ secrets.SPARKLE_PUBLIC_KEY }}

.github/workflows/create-draft-release.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ on:
1515
required: true
1616
default: "1.0.0"
1717

18+
env:
19+
PR_NAME: ${{ github.event.inputs.name }}
20+
PR_TAG: ${{ github.event.inputs.tag }}
21+
PR_UPDATER_VERSION: ${{ github.event.inputs.updater_version }}
22+
1823
jobs:
1924
release:
2025
runs-on: ubuntu-latest
2126
permissions:
2227
contents: write
2328
pull-requests: write
2429

25-
env:
26-
PR_NAME: ${{ github.event.inputs.name }}
27-
PR_TAG: ${{ github.event.inputs.tag }}
28-
UPDATER_VERSION: ${{ github.event.inputs.updater_version }}
29-
3030
steps:
3131
- name: Checkout Repo
3232
uses: actions/checkout@v6
@@ -54,14 +54,14 @@ jobs:
5454
uses: ncipollo/release-action@b7eabc95ff50cbeeedec83973935c8f306dfcd0b # v1.20
5555
with:
5656
tag: "v$PR_TAG"
57-
name: $PR_NAME
57+
name: "$PR_NAME"
5858
draft: true
5959
generateReleaseNotesPreviousTag: true
6060

6161
- name: Run Scripts
6262
run: |
6363
./Scripts/build.sh
64-
./Scripts/package.sh -s $PR_TAG -u $UPDATER_VERSION
64+
./Scripts/package.sh -s $PR_TAG -u $PR_UPDATER_VERSION
6565
env:
6666
SPARKLE_PRIVATE_KEY: ${{ secrets.SPARKLE_PRIVATE_KEY }}
6767
SPARKLE_PUBLIC_KEY: ${{ secrets.SPARKLE_PUBLIC_KEY }}
@@ -91,7 +91,7 @@ jobs:
9191
git checkout -b "${branch}"
9292
9393
git add .
94-
git commit -m "Update Appcasts and Updater for SRMM version $PR_TAG and Updater version $UPDATER_VERSION"
94+
git commit -m "Update Appcasts and Updater for SRMM version $PR_TAG and Updater version $PR_UPDATER_VERSION"
9595
git push origin "${branch}"
9696
env:
9797
GIT_AUTHOR_NAME: github-actions

0 commit comments

Comments
 (0)