From 5056a2331cf75609516a41c8dff6a98a2a091158 Mon Sep 17 00:00:00 2001 From: Matthew Pope Date: Thu, 3 Oct 2024 21:44:21 -0700 Subject: [PATCH] Update to new runner label syntax --- .github/workflows/build.yml | 20 +++++++++----------- .github/workflows/pr.yml | 5 ++++- .github/workflows/release.yml | 5 ++++- 3 files changed, 17 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fe75acc..071e1cb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,10 @@ jobs: # Build and test plugin and provide artifact. build: name: Build - runs-on: codebuild-ion-intellij-plugin-${{ github.run_id }}-${{ github.run_attempt }}-arm-3.0-large + runs-on: + - codebuild-myProject-${{ github.run_id }}-${{ github.run_attempt }} + - image:arm-3.0 + - instance-size:large steps: - uses: actions/checkout@v4 - uses: actions/setup-java@v3 @@ -38,8 +41,11 @@ jobs: publish-beta: needs: build - runs-on: codebuild-ion-intellij-plugin-${{ github.run_id }}-${{ github.run_attempt }}-arm-3.0-large - if: github.repository == 'amazon-ion/ion-intellij-plugin' + runs-on: + - codebuild-myProject-${{ github.run_id }}-${{ github.run_attempt }} + - image:arm-3.0 + - instance-size:large + if: github.repository == 'amazon-ion/ion-intellij-plugin' && github.ref == 'refs/heads/master' steps: - uses: actions/checkout@v4 - uses: actions/setup-java@v3 @@ -53,11 +59,3 @@ jobs: PUBLISH_TOKEN: ${{ secrets.JETBRAINS_TOKEN }} PUBLISH_CHANNEL: beta run: ./gradlew --stacktrace publishPlugin - - # Upload plugin artifact to make it available in the next jobs - - name: Upload artifact - if: github.repository == 'amazon-ion/ion-intellij-plugin' && github.ref == 'refs/heads/master' - uses: actions/upload-artifact@v4 - with: - name: plugin-artifact - path: ./build/distributions/ diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 0f14b10..8ab6f06 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -16,7 +16,10 @@ jobs: # Build and test plugin and provide artifact. build: name: Build - runs-on: codebuild-ion-intellij-plugin-${{ github.run_id }}-${{ github.run_attempt }}-arm-3.0-large + runs-on: + - codebuild-myProject-${{ github.run_id }}-${{ github.run_attempt }} + - image:arm-3.0 + - instance-size:large steps: - uses: actions/checkout@v4 - uses: actions/setup-java@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3ae9b99..b89b6e5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,10 @@ env: jobs: release: - runs-on: codebuild-ion-intellij-plugin-${{ github.run_id }}-${{ github.run_attempt }}-arm-3.0-large + runs-on: + - codebuild-myProject-${{ github.run_id }}-${{ github.run_attempt }} + - image:arm-3.0 + - instance-size:large steps: # Check out current repository - uses: actions/checkout@v4