Fix bindist CI

This commit is contained in:
Julian Ospald 2022-12-25 23:33:21 +08:00
parent c3f824ddc3
commit 4bccb92d3f
Signed by: hasufell
GPG Key ID: 3786C5262ECB4A3F

View File

@ -78,7 +78,8 @@ jobs:
run: | run: |
${{ matrix.installCmd }} curl bash git ${{ matrix.toolRequirements }} ${{ matrix.installCmd }} curl bash git ${{ matrix.toolRequirements }}
- uses: shpingalet007/pull-request-comment-trigger@696de492b50cee0ba671934893c91c5805a403b9 - if: ${{ github.event_name != 'workflow_dispatch' }}
uses: shpingalet007/pull-request-comment-trigger@696de492b50cee0ba671934893c91c5805a403b9
id: check id: check
with: with:
trigger: '@bindistTest ** ** **' trigger: '@bindistTest ** ** **'
@ -87,7 +88,8 @@ jobs:
env: env:
GITHUB_TOKEN: '${{secrets.GITHUB_TOKEN}}' GITHUB_TOKEN: '${{secrets.GITHUB_TOKEN}}'
- uses: shpingalet007/pull-request-comment-trigger@696de492b50cee0ba671934893c91c5805a403b9 - if: ${{ github.event_name != 'workflow_dispatch' }}
uses: shpingalet007/pull-request-comment-trigger@696de492b50cee0ba671934893c91c5805a403b9
id: checkRef id: checkRef
with: with:
trigger: '@bindistTestRef ** ** ** **' trigger: '@bindistTestRef ** ** ** **'
@ -104,13 +106,13 @@ jobs:
- if: ${{ steps.checkRef.outputs.triggered != 'true' }} - if: ${{ steps.checkRef.outputs.triggered != 'true' }}
uses: actions/checkout@v3 uses: actions/checkout@v3
- if: ${{ github.event_name != 'workflow_dispatch' || steps.check.outputs.triggered == 'true' }} - if: ${{ github.event_name != 'workflow_dispatch' && steps.check.outputs.triggered == 'true' }}
continue-on-error: true continue-on-error: true
name: Install ghcup and bindist name: Install ghcup and bindist
run: | run: |
[ -z "${TOOL}" ] && export TOOL=${{ fromJson(steps.check.outputs.arguments)[0] }} export TOOL=${{ fromJson(steps.check.outputs.arguments)[0] }}
[ -z "${VERSION}" ] && export VERSION=${{ fromJson(steps.check.outputs.arguments)[1] }} export VERSION=${{ fromJson(steps.check.outputs.arguments)[1] }}
[ -z "${METADATA_FILE}" ] && export METADATA_FILE=${{ fromJson(steps.check.outputs.arguments)[2] }} export METADATA_FILE=${{ fromJson(steps.check.outputs.arguments)[2] }}
.github/workflows/install-bindist.sh .github/workflows/install-bindist.sh
echo SUCCESS=true >> $GITHUB_ENV echo SUCCESS=true >> $GITHUB_ENV
@ -118,9 +120,9 @@ jobs:
continue-on-error: true continue-on-error: true
name: Install ghcup and bindist name: Install ghcup and bindist
run: | run: |
[ -z "${TOOL}" ] && export TOOL=${{ fromJson(steps.checkRef.outputs.arguments)[0] }} export TOOL=${{ fromJson(steps.checkRef.outputs.arguments)[0] }}
[ -z "${VERSION}" ] && export VERSION=${{ fromJson(steps.checkRef.outputs.arguments)[1] }} export VERSION=${{ fromJson(steps.checkRef.outputs.arguments)[1] }}
[ -z "${METADATA_FILE}" ] && export METADATA_FILE=${{ fromJson(steps.checkRef.outputs.arguments)[2] }} export METADATA_FILE=${{ fromJson(steps.checkRef.outputs.arguments)[2] }}
.github/workflows/install-bindist.sh .github/workflows/install-bindist.sh
echo SUCCESS=true >> $GITHUB_ENV echo SUCCESS=true >> $GITHUB_ENV
@ -155,7 +157,8 @@ jobs:
- windows-latest - windows-latest
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: shpingalet007/pull-request-comment-trigger@696de492b50cee0ba671934893c91c5805a403b9 - if: ${{ github.event_name != 'workflow_dispatch' }}
uses: shpingalet007/pull-request-comment-trigger@696de492b50cee0ba671934893c91c5805a403b9
id: check id: check
with: with:
trigger: '@bindistTest ** ** **' trigger: '@bindistTest ** ** **'
@ -164,7 +167,8 @@ jobs:
env: env:
GITHUB_TOKEN: '${{secrets.GITHUB_TOKEN}}' GITHUB_TOKEN: '${{secrets.GITHUB_TOKEN}}'
- uses: shpingalet007/pull-request-comment-trigger@696de492b50cee0ba671934893c91c5805a403b9 - if: ${{ github.event_name != 'workflow_dispatch' }}
uses: shpingalet007/pull-request-comment-trigger@696de492b50cee0ba671934893c91c5805a403b9
id: checkRef id: checkRef
with: with:
trigger: '@bindistTestRef ** ** ** **' trigger: '@bindistTestRef ** ** ** **'
@ -181,13 +185,13 @@ jobs:
- if: ${{ steps.checkRef.outputs.triggered != 'true' }} - if: ${{ steps.checkRef.outputs.triggered != 'true' }}
uses: actions/checkout@v3 uses: actions/checkout@v3
- if: ${{ github.event_name != 'workflow_dispatch' || steps.check.outputs.triggered == 'true' }} - if: ${{ github.event_name != 'workflow_dispatch' && steps.check.outputs.triggered == 'true' }}
continue-on-error: true continue-on-error: true
name: Install ghcup and bindist name: Install ghcup and bindist
run: | run: |
[ -z "${TOOL}" ] && export TOOL=${{ fromJson(steps.check.outputs.arguments)[0] }} export TOOL=${{ fromJson(steps.check.outputs.arguments)[0] }}
[ -z "${VERSION}" ] && export VERSION=${{ fromJson(steps.check.outputs.arguments)[1] }} export VERSION=${{ fromJson(steps.check.outputs.arguments)[1] }}
[ -z "${METADATA_FILE}" ] && export METADATA_FILE=${{ fromJson(steps.check.outputs.arguments)[2] }} export METADATA_FILE=${{ fromJson(steps.check.outputs.arguments)[2] }}
.github/workflows/install-bindist.sh .github/workflows/install-bindist.sh
echo SUCCESS=true >> $GITHUB_ENV echo SUCCESS=true >> $GITHUB_ENV
@ -195,9 +199,9 @@ jobs:
continue-on-error: true continue-on-error: true
name: Install ghcup and bindist name: Install ghcup and bindist
run: | run: |
[ -z "${TOOL}" ] && export TOOL=${{ fromJson(steps.checkRef.outputs.arguments)[0] }} export TOOL=${{ fromJson(steps.checkRef.outputs.arguments)[0] }}
[ -z "${VERSION}" ] && export VERSION=${{ fromJson(steps.checkRef.outputs.arguments)[1] }} export VERSION=${{ fromJson(steps.checkRef.outputs.arguments)[1] }}
[ -z "${METADATA_FILE}" ] && export METADATA_FILE=${{ fromJson(steps.checkRef.outputs.arguments)[2] }} export METADATA_FILE=${{ fromJson(steps.checkRef.outputs.arguments)[2] }}
.github/workflows/install-bindist.sh .github/workflows/install-bindist.sh
echo SUCCESS=true >> $GITHUB_ENV echo SUCCESS=true >> $GITHUB_ENV