Fix environment variable casing for license checks in update workflow
Some checks failed
Building and publishing Homebrewery as Docker Image / update-description (release) Failing after 10s
Building and publishing Homebrewery as Docker Image / build (release) Failing after 34s

This commit is contained in:
Florian Weber 2025-06-27 14:52:29 +02:00
parent f803541ba0
commit 6e5d35cb55
Signed by: f.weber
GPG Key ID: A1C85EB19014A2D3

View File

@ -29,7 +29,7 @@ jobs:
echo "LICENSE=$license" >>"$GITHUB_ENV"
- name: Get latest Homebrewery release via GitHub API
if: ${{ env.license == 'MIT' }}
if: ${{ env.LICENSE == 'MIT' }}
run: |
resp=$(curl -sSf \
-H "Accept: application/vnd.github.v3+json" \
@ -64,7 +64,7 @@ jobs:
} >>"$GITHUB_ENV"
- name: Debug step
if: ${{ env.license == 'MIT' }}
if: ${{ env.LICENSE == 'MIT' }}
run: |
echo "id: $ID"
echo "draft: $DRAFT"
@ -75,7 +75,7 @@ jobs:
- name: Create Docker Release
uses: softprops/action-gh-release@v2
if: ${{ env.license == 'MIT' && env.ID > 0 && env.DRAFT != 'true' }}
if: ${{ env.LICENSE == 'MIT' && env.ID > 0 && env.DRAFT != 'true' }}
with:
token: ${{ secrets.GT_UPDATE_TOKEN }}
prerelease: ${{ env.PRERELEASE }}
@ -83,8 +83,13 @@ jobs:
tag_name: ${{ env.TAG_NAME }}
body: ${{ env.RELEASE_BODY }}
- name: Checkout Repository for issue template
if: ${{ env.LICENSE != 'MIT' }}
uses: actions/checkout@v4
- name: Create License changed issue
uses: JasonEtco/create-an-issue@v2
if: ${{ env.LICENSE != 'MIT' }}
env:
GITHUB_TOKEN: ${{ secrets.GT_UPDATE_TOKEN }}
with: