chore(ci): add main develop merge condition to runner (#4941)

This commit is contained in:
Radosław Szpiech 2023-09-29 17:36:18 +02:00 committed by GitHub
parent 79cbe62774
commit 30da1663eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,8 @@ jobs:
run: | run: |
if [ ${{ github.base_ref }} == 'main' ]; then if [ ${{ github.base_ref }} == 'main' ]; then
echo "runner=mainnet-compatible-runner" >> $GITHUB_OUTPUT echo "runner=mainnet-compatible-runner" >> $GITHUB_OUTPUT
elif [ ${{ github.base_ref }} == 'develop' ] && [ ${{ github.ref_name }} == 'main' ]; then
echo "runner=mainnet-compatible-runner" >> $GITHUB_OUTPUT
elif [ ${{ github.event_name }} == 'push' ] && [ ${{ contains(github.ref_name, 'release/mainnet') }} ]; then elif [ ${{ github.event_name }} == 'push' ] && [ ${{ contains(github.ref_name, 'release/mainnet') }} ]; then
echo "runner=mainnet-compatible-runner" >> $GITHUB_OUTPUT echo "runner=mainnet-compatible-runner" >> $GITHUB_OUTPUT
else else