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