diff --git a/.github/internal-actions/setup-gcloud/action.yml b/.github/internal-actions/setup-gcloud/action.yml new file mode 100644 index 0000000000..59d1e4073b --- /dev/null +++ b/.github/internal-actions/setup-gcloud/action.yml @@ -0,0 +1,16 @@ +name: setup-gcloud + +runs: + using: "composite" + steps: + - name: Auth gcloud + uses: google-github-actions/auth@v2 + with: + workload_identity_provider: 'projects/321830142373/locations/global/workloadIdentityPools/github/providers/expo' + project_id: exponentjs + + - name: Setup gcloud + uses: google-github-actions/setup-gcloud@e427ad8a34f8676edf47cf7d7925499adf3eb74f # v2 + with: + version: 413.0.0 + project_id: exponentjs \ No newline at end of file diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index d1ac39a64e..2be20bd3e0 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -13,28 +13,13 @@ concurrency: cancel-in-progress: true jobs: - pr-changelog-entry: - name: Check CHANGELOG.md updated + test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Check if CHANGELOG.md was updated - id: changelog-updated - uses: tj-actions/changed-files@b1ba699b304f2083b602164e06a89b868c84f076 - with: - files: CHANGELOG.md - - name: Fail if CHANGELOG.md was not updated and the "no changelog" label is absent - if: steps.changelog-updated.outputs.any_changed == 'false' && !contains(github.event.pull_request.labels.*.name, 'no changelog') - uses: actions/github-script@v6 - with: - script: | - core.setFailed('Please add a changelog entry!') - - uses: mshick/add-pr-comment@v2.1.0 - if: always() - with: - message-id: changelog-entry-check - refresh-message-position: true - message: ${{ contains(github.event.pull_request.labels.*.name, 'no changelog') && '⏩ The changelog entry check has been skipped since the "no changelog" label is present.' || '✅ Thank you for adding the changelog entry!' }} - message-failure: | - ❌ It looks like a changelog entry is missing for this PR. Add it manually to CHANGELOG.md. - ⏩ If this PR doesn't require a changelog entry, such as if it's an internal change that doesn't affect the user experience, you can add the "no changelog" label to the PR. + - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 + + - uses: ./.github/internal-actions/setup-gcloud + + - name: Test + run: | + gsutil cp gs://eas-build-worker-tarballs/worker-android-staging.tar.gz gs://eas-build-worker-tarballs/worker-android-test.tar.gz \ No newline at end of file diff --git a/.github/workflows/sjchmiela-test.yml b/.github/workflows/sjchmiela-test.yml new file mode 100644 index 0000000000..2567982ea5 --- /dev/null +++ b/.github/workflows/sjchmiela-test.yml @@ -0,0 +1,16 @@ +on: + push: {} + +jobs: + test: + runs-on: ubuntu-latest + permissions: + id-token: write + steps: + - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 + + - uses: ./.github/internal-actions/setup-gcloud + + - name: Test + run: | + gsutil cp gs://eas-build-worker-tarballs/worker-android-staging.tar.gz gs://eas-build-worker-tarballs/worker-android-test.tar.gz \ No newline at end of file