mirror of
https://github.com/Instadapp/trustwallet-assets.git
synced 2024-07-29 22:37:31 +00:00
[Internal] Fix build uses different tokens (#3121)
* Fix build uses different tokens. * If expression syntax * Restrict Upload to main repo, remove echo Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
This commit is contained in:
parent
9d21e92bb2
commit
662662843e
10
.github/workflows/fix.yml
vendored
10
.github/workflows/fix.yml
vendored
|
@ -7,7 +7,15 @@ jobs:
|
|||
fix:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Checkout (trustwallet repo, secret token)
|
||||
if: github.repository_owner == 'trustwallet'
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
token: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
|
||||
ref: ${{ github.ref }}
|
||||
- name: Checkout (fork repo, default token)
|
||||
if: github.repository_owner != 'trustwallet'
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
ref: ${{ github.ref }}
|
||||
|
|
4
.github/workflows/s3_upload.yml
vendored
4
.github/workflows/s3_upload.yml
vendored
|
@ -8,7 +8,9 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: jakejarvis/s3-sync-action@master
|
||||
- name: Upload (from main repo only)
|
||||
if: github.repository_owner == 'trustwallet'
|
||||
uses: jakejarvis/s3-sync-action@master
|
||||
with:
|
||||
args: --acl public-read --follow-symlinks --delete --exclude '*' --include 'dapps/*' --include 'blockchains/*'
|
||||
env:
|
||||
|
|
Loading…
Reference in New Issue
Block a user