repository owner is nogo
@@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
- IS_LOCAL: ${{ github.repository_owner == 'galacticcouncil' }}
+ IS_LOCAL: ${{ github.event.pull_request.head.repo.fork }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
@@ -19,7 +19,6 @@ jobs:
outputs:
runner: ${{ steps.determine-runner.outputs.runner }}
steps:
- - run: echo "${{ toJSON(github) }}"
- id: determine-runner
name: Determine runner
run: if $IS_LOCAL; then echo "::set-output name=runner::${{ github.sha }}"; else echo "::set-output name=runner::ubuntu-latest"; fi;
@@ -106,7 +105,7 @@ jobs:
name: destroy infra
runs-on: ubuntu-latest
needs: build
- if: ${{ always() && github.repository_owner == 'galacticcountil' }}
+ if: ${{ always() && github.event.pull_request.head.repo.fork }}
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
