Skip to content

Commit

Permalink
Update to new runner label syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
popematt committed Oct 4, 2024
1 parent 50425cd commit 5056a23
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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/
5 changes: 4 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5056a23

Please sign in to comment.