|  | 
| 20 | 20 |     with: | 
| 21 | 21 |       task: ${{ inputs.productId }} | 
| 22 | 22 | 
 | 
|  | 23 | +  draft-script: | 
|  | 24 | +    runs-on: ${{ needs.create-runner.outputs.label }} | 
|  | 25 | +    container: | 
|  | 26 | +      image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:pd-test-new-preview-gha.24525 | 
|  | 27 | +    needs: [ create-runner ] | 
|  | 28 | +    steps: | 
|  | 29 | +      - uses: actions/checkout@v2 | 
|  | 30 | +      - name: Setup Environment | 
|  | 31 | +        uses: ./.github/actions/setup-environment | 
|  | 32 | +        with: | 
|  | 33 | +          identity_provider: ${{ github.ref == 'refs/heads/main' && secrets.CORE_DEV_PROVIDER || secrets.DEV_PREVIEW_PROVIDER }} | 
|  | 34 | +          service_account: ${{ github.ref == 'refs/heads/main' && secrets.CORE_DEV_SA || secrets.DEV_PREVIEW_SA }} | 
|  | 35 | +          leeway_segment_key: ${{ secrets.LEEWAY_SEGMENT_KEY }} | 
|  | 36 | +      - name: Install dependencies | 
|  | 37 | +        run: | | 
|  | 38 | +          cd ./components/ide/gha-update-image/ | 
|  | 39 | +          yarn | 
|  | 40 | +          npm i -g bun | 
|  | 41 | +      - name: Find Nightly Target | 
|  | 42 | +        id: target | 
|  | 43 | +        run: | | 
|  | 44 | +          cd ./components/ide/gha-update-image/ | 
|  | 45 | +          bun run index-jb-nightly.ts --task=1 --productCode=${{ inputs.productCode }} | 
|  | 46 | +
 | 
|  | 47 | +          if [ -f /tmp/__gh_output.txt ] | 
|  | 48 | +          then | 
|  | 49 | +            cat /tmp/__gh_output.txt >> $GITHUB_OUTPUT | 
|  | 50 | +          fi | 
|  | 51 | +
 | 
| 23 | 52 |   update-jetbrains: | 
| 24 | 53 |     runs-on: ${{ needs.create-runner.outputs.label }} | 
| 25 | 54 |     container: | 
|  | 
| 55 | 84 |           LEEWAY_REMOTE_CACHE_BUCKET: ${{ github.ref == 'refs/heads/main' && 'leeway-cache-main-c514a01' || 'leeway-cache-dev-3ac8ef5' }} | 
| 56 | 85 |         run: | | 
| 57 | 86 |           imageRepoBase=${{ github.ref == 'refs/heads/main' && 'eu.gcr.io/gitpod-core-dev/build' || 'eu.gcr.io/gitpod-dev-artifact/build' }} | 
| 58 |  | -          leeway build -Dversion=latest -DimageRepoBase=$imageRepoBase -DbuildNumber=${{ steps.ide-version.outputs.ideBuildVersion }} components/ide/jetbrains/image:${{ inputs.productId }}-latest -DjbBackendVersion=${{ steps.ide-version.outputs.ideVersion }} | 
|  | 87 | +          echo "leeway build -Dversion=latest -DimageRepoBase=$imageRepoBase -DbuildNumber=${{ steps.ide-version.outputs.ideBuildVersion }} components/ide/jetbrains/image:${{ inputs.productId }}-latest -DjbBackendVersion=${{ steps.ide-version.outputs.ideVersion }}" | 
| 59 | 88 |       - name: Get previous job's status | 
| 60 | 89 |         id: lastrun | 
| 61 | 90 |         uses: filiptronicek/get-last-job-status@main | 
|  | 
0 commit comments