From 9309154d051b44bb1c623b6d47c975a1c1cb1828 Mon Sep 17 00:00:00 2001 From: Josh Brand Date: Thu, 2 Feb 2023 10:36:33 -0500 Subject: [PATCH] Gate jobs to run only on OSS repo, adjust TIME_LIMIT for boundary (#2884) --- .github/workflows/test-ci-cleanup-oss.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-ci-cleanup-oss.yml b/.github/workflows/test-ci-cleanup-oss.yml index 3b62d9c10..ddb19c13d 100644 --- a/.github/workflows/test-ci-cleanup-oss.yml +++ b/.github/workflows/test-ci-cleanup-oss.yml @@ -6,6 +6,7 @@ on: jobs: setup: + if: ${{ github.event.repository.name == 'boundary' }} runs-on: ubuntu-latest outputs: regions: ${{steps.setup.outputs.regions}} @@ -30,6 +31,7 @@ jobs: echo "account_id=$(curl -s http://169.254.169.254/latest/dynamic/instance-identity/document | awk -F'"' '/"accountId"/ { print $4 }')" >> $GITHUB_OUTPUT aws-nuke: + if: ${{ github.event.repository.name == 'boundary' }} needs: setup runs-on: ubuntu-latest container: @@ -40,7 +42,7 @@ jobs: env: AWS_ACCESS_KEY_ID: ${{ env.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ env.AWS_SECRET_ACCESS_KEY }} - TIME_LIMIT: "72h" + TIME_LIMIT: "48h" timeout-minutes: 60 steps: - name: Configure AWS credentials @@ -67,6 +69,7 @@ jobs: aws-nuke -c aws-nuke.yml -q --no-dry-run --force 2>/tmp/aws-nuke-error.log || true check-quotas: + if: ${{ github.event.repository.name == 'boundary' }} needs: [ setup, aws-nuke ] runs-on: ubuntu-latest container: