Print starcatcher release response to console if it fails
I guess we'll see at the next release whether I did this correctly.
This commit is contained in:
parent
858ba7cc93
commit
8c80dca91b
7
.github/starcatcher-release.sh
vendored
Executable file
7
.github/starcatcher-release.sh
vendored
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
curl $1 > perform_release
|
||||||
|
if ! grep "Release complete" < perform_release > /dev/null; then
|
||||||
|
cat perform_release
|
||||||
|
exit 1
|
||||||
|
fi
|
6
.github/workflows/build.yaml
vendored
6
.github/workflows/build.yaml
vendored
@ -131,7 +131,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: powder${{ matrix.suffix }}
|
path: powder${{ matrix.suffix }}
|
||||||
name: powder-${{ steps.get_type.outputs.NAME }}-${{ matrix.machine_short }}-${{ matrix.platform_short }}-${{ matrix.toolset_short }}-${{ matrix.static_dynamic }}${{ matrix.suffix }}
|
name: powder-${{ steps.get_type.outputs.NAME }}-${{ matrix.machine_short }}-${{ matrix.platform_short }}-${{ matrix.toolset_short }}-${{ matrix.static_dynamic }}${{ matrix.suffix }}
|
||||||
starcatcher-upload:
|
starcatcher-publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build, release]
|
needs: [build, release]
|
||||||
if: needs.release.outputs.can_publish == 'yes' && startsWith(github.ref, 'refs/tags/') # not a perfect match but get-type.py takes care of this in job build
|
if: needs.release.outputs.can_publish == 'yes' && startsWith(github.ref, 'refs/tags/') # not a perfect match but get-type.py takes care of this in job build
|
||||||
@ -187,7 +187,7 @@ jobs:
|
|||||||
STARCATCHER_PUBLISH_FILENAME: powder-${{ steps.get_type.outputs.NAME }}-${{ matrix.machine_short }}-${{ matrix.platform_short }}-${{ matrix.toolset_short }}-${{ matrix.static_dynamic }}${{ matrix.suffix }}
|
STARCATCHER_PUBLISH_FILENAME: powder-${{ steps.get_type.outputs.NAME }}-${{ matrix.machine_short }}-${{ matrix.platform_short }}-${{ matrix.toolset_short }}-${{ matrix.static_dynamic }}${{ matrix.suffix }}
|
||||||
starcatcher-release:
|
starcatcher-release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [starcatcher-upload, release]
|
needs: [starcatcher-publish, release]
|
||||||
if: needs.release.outputs.can_publish == 'yes' && startsWith(github.ref, 'refs/tags/') # not a perfect match but get-type.py takes care of this in job build
|
if: needs.release.outputs.can_publish == 'yes' && startsWith(github.ref, 'refs/tags/') # not a perfect match but get-type.py takes care of this in job build
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -196,4 +196,4 @@ jobs:
|
|||||||
python-version: '3.8'
|
python-version: '3.8'
|
||||||
- id: get_type
|
- id: get_type
|
||||||
run: python3 ./.github/get-type.py ${{ github.ref }}
|
run: python3 ./.github/get-type.py ${{ github.ref }}
|
||||||
- run: curl "https://starcatcher.us/TPT/perform-release.lua?mod=${{ steps.get_type.outputs.MOD_ID }}&type=${{ steps.get_type.outputs.TYPE }}&name=${{ steps.get_type.outputs.NAME }}&commit=${{ github.sha }}" | grep "Release complete"
|
- run: ./.github/starcatcher-publish.sh "https://starcatcher.us/TPT/perform-release.lua?mod=${{ steps.get_type.outputs.MOD_ID }}&type=${{ steps.get_type.outputs.TYPE }}&name=${{ steps.get_type.outputs.NAME }}&commit=${{ github.sha }}"
|
||||||
|
Reference in New Issue
Block a user