Set production services for release PRs in all networks
This commit is contained in:
parent
ccd54721cf
commit
9c0e8f4f68
|
@ -37,7 +37,7 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Remove broken apt repos [Ubuntu]
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
if: ${{ matrix.os }} == 'ubuntu-latest'
|
||||
run: |
|
||||
for apt_file in `grep -lr microsoft /etc/apt/sources.list.d/`; do sudo rm $apt_file; done
|
||||
- uses: actions/checkout@v2
|
||||
|
@ -65,9 +65,9 @@ jobs:
|
|||
yarn cache clean
|
||||
|
||||
# Set production flag
|
||||
- name: Set production flag for tag build
|
||||
- name: Set production flag for release PR or tagged build
|
||||
run: echo "REACT_APP_ENV=production" >> $GITHUB_ENV
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
if: startsWith(github.ref, 'refs/tags/v') || github.base_ref == 'master'
|
||||
|
||||
- name: Build ${{ env.REACT_APP_NETWORK }} app
|
||||
run: yarn build
|
||||
|
@ -101,7 +101,6 @@ jobs:
|
|||
* [Safe Multisig app ${{ env.REACT_APP_NETWORK }}](${{ env.REVIEW_FEATURE_URL }}/${{ env.REACT_APP_NETWORK }}/app/)
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
repo-token-user-login: 'github-actions[bot]'
|
||||
allow-repeats: true
|
||||
if: success() && github.event.number
|
||||
env:
|
||||
REVIEW_FEATURE_URL: https://pr${{ github.event.number }}--${{ env.REPO_NAME_ALPHANUMERIC }}.review.gnosisdev.com
|
||||
|
|
|
@ -36,7 +36,7 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Remove broken apt repos [Ubuntu]
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
if: ${{ matrix.os }} == 'ubuntu-latest'
|
||||
run: |
|
||||
for apt_file in `grep -lr microsoft /etc/apt/sources.list.d/`; do sudo rm $apt_file; done
|
||||
- uses: actions/checkout@v2
|
||||
|
@ -64,9 +64,9 @@ jobs:
|
|||
yarn cache clean
|
||||
|
||||
# Set production flag
|
||||
- name: Set production flag for tag build
|
||||
- name: Set production flag for release PR or tagged build
|
||||
run: echo "REACT_APP_ENV=production" >> $GITHUB_ENV
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
if: startsWith(github.ref, 'refs/tags/v') || github.base_ref == 'master'
|
||||
|
||||
- name: Build ${{ env.REACT_APP_NETWORK }} app
|
||||
run: yarn build
|
||||
|
@ -103,7 +103,6 @@ jobs:
|
|||
* [Safe Multisig app ${{ env.REACT_APP_NETWORK }}](${{ env.REVIEW_FEATURE_URL }}/${{ env.REACT_APP_NETWORK }}/app/)
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
repo-token-user-login: 'github-actions[bot]'
|
||||
allow-repeats: true
|
||||
if: success() && github.event.number
|
||||
env:
|
||||
REVIEW_FEATURE_URL: https://pr${{ github.event.number }}--${{ env.REPO_NAME_ALPHANUMERIC }}.review.gnosisdev.com
|
||||
|
|
|
@ -66,7 +66,7 @@ jobs:
|
|||
yarn cache clean
|
||||
|
||||
# Set production flag
|
||||
- name: Set production flag for tag build
|
||||
- name: Set production flag for release PR or tagged build
|
||||
run: echo "REACT_APP_ENV=production" >> $GITHUB_ENV
|
||||
if: startsWith(github.ref, 'refs/tags/v') || github.base_ref == 'master'
|
||||
|
||||
|
@ -103,7 +103,6 @@ jobs:
|
|||
* [Safe Multisig app ${{ env.REACT_APP_NETWORK }}](${{ env.REVIEW_FEATURE_URL }}/${{ env.REACT_APP_NETWORK }}/app/)
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
repo-token-user-login: 'github-actions[bot]'
|
||||
allow-repeats: true
|
||||
if: success() && github.event.number
|
||||
env:
|
||||
REVIEW_FEATURE_URL: https://pr${{ github.event.number }}--${{ env.REPO_NAME_ALPHANUMERIC }}.review.gnosisdev.com
|
||||
|
|
|
@ -37,7 +37,7 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Remove broken apt repos [Ubuntu]
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
if: ${{ matrix.os }} == 'ubuntu-latest'
|
||||
run: |
|
||||
for apt_file in `grep -lr microsoft /etc/apt/sources.list.d/`; do sudo rm $apt_file; done
|
||||
- uses: actions/checkout@v2
|
||||
|
@ -65,9 +65,9 @@ jobs:
|
|||
yarn cache clean
|
||||
|
||||
# Set production flag
|
||||
- name: Set production flag for tag build
|
||||
- name: Set production flag for release PR or tagged build
|
||||
run: echo "REACT_APP_ENV=production" >> $GITHUB_ENV
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
if: startsWith(github.ref, 'refs/tags/v') || github.base_ref == 'master'
|
||||
|
||||
- name: Build ${{ env.REACT_APP_NETWORK }} app
|
||||
run: yarn build
|
||||
|
@ -101,7 +101,6 @@ jobs:
|
|||
* [Safe Multisig app ${{ env.REACT_APP_NETWORK }}](${{ env.REVIEW_FEATURE_URL }}/${{ env.REACT_APP_NETWORK }}/app/)
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
repo-token-user-login: 'github-actions[bot]'
|
||||
allow-repeats: true
|
||||
if: success() && github.event.number
|
||||
env:
|
||||
REVIEW_FEATURE_URL: https://pr${{ github.event.number }}--${{ env.REPO_NAME_ALPHANUMERIC }}.review.gnosisdev.com
|
||||
|
|
|
@ -37,7 +37,7 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Remove broken apt repos [Ubuntu]
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
if: ${{ matrix.os }} == 'ubuntu-latest'
|
||||
run: |
|
||||
for apt_file in `grep -lr microsoft /etc/apt/sources.list.d/`; do sudo rm $apt_file; done
|
||||
- uses: actions/checkout@v2
|
||||
|
@ -65,9 +65,9 @@ jobs:
|
|||
yarn cache clean
|
||||
|
||||
# Set production flag
|
||||
- name: Set production flag for tag build
|
||||
- name: Set production flag for release PR or tagged build
|
||||
run: echo "REACT_APP_ENV=production" >> $GITHUB_ENV
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
if: startsWith(github.ref, 'refs/tags/v') || github.base_ref == 'master'
|
||||
|
||||
- name: Build ${{ env.REACT_APP_NETWORK }} app
|
||||
run: yarn build
|
||||
|
@ -101,7 +101,6 @@ jobs:
|
|||
* [Safe Multisig app ${{ env.REACT_APP_NETWORK }}](${{ env.REVIEW_FEATURE_URL }}/${{ env.REACT_APP_NETWORK }}/app/)
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
repo-token-user-login: 'github-actions[bot]'
|
||||
allow-repeats: true
|
||||
if: success() && github.event.number
|
||||
env:
|
||||
REVIEW_FEATURE_URL: https://pr${{ github.event.number }}--${{ env.REPO_NAME_ALPHANUMERIC }}.review.gnosisdev.com
|
||||
|
|
Loading…
Reference in New Issue