Fix environment variable casing for license checks in update workflow
This commit is contained in:
parent
f803541ba0
commit
6e5d35cb55
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user