From d0a99c37c1b49bc4f5615504f33b051342dad3f6 Mon Sep 17 00:00:00 2001 From: Alan Rominger Date: Tue, 23 Sep 2025 09:16:07 -0400 Subject: [PATCH] Use action before schema logic, fix failure to upload schema (#16099) Use action before schema logic --- .github/workflows/upload_schema.yml | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/.github/workflows/upload_schema.yml b/.github/workflows/upload_schema.yml index f2e1d109f9..a0aeeb60e8 100644 --- a/.github/workflows/upload_schema.yml +++ b/.github/workflows/upload_schema.yml @@ -24,28 +24,11 @@ jobs: with: show-progress: false - - uses: ./.github/actions/setup-python - - - name: Log in to registry - run: | - echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin - - - uses: ./.github/actions/setup-ssh-agent + - name: Build awx_devel image to use for schema gen + uses: ./.github/actions/awx_devel_image with: - ssh-private-key: ${{ secrets.PRIVATE_GITHUB_KEY }} - - - name: Pre-pull image to warm build cache - run: | - DEV_DOCKER_TAG_BASE=ghcr.io/${OWNER_LC} \ - COMPOSE_TAG=${{ github.base_ref || github.ref_name }} \ - docker pull -q `make print-DEVEL_IMAGE_NAME` - continue-on-error: true - - - name: Build image - run: | - DEV_DOCKER_TAG_BASE=ghcr.io/${OWNER_LC} \ - COMPOSE_TAG=${{ github.base_ref || github.ref_name }} \ - make docker-compose-build + github-token: ${{ secrets.GITHUB_TOKEN }} + private-github-key: ${{ secrets.PRIVATE_GITHUB_KEY }} - name: Generate API Schema run: |