|
7 | 7 | type: choice |
8 | 8 | description: 'What runtime to use?' |
9 | 9 | required: true |
10 | | - default: 'graalvm' |
| 10 | + default: 'custom native-package' |
11 | 11 | options: |
12 | 12 | - 'custom native-package' |
13 | 13 | - 'custom assembly' |
|
24 | 24 |
|
25 | 25 | env: |
26 | 26 | AWS_CLIENT_DEBUG_MODE: ON |
| 27 | + default-runtime: 'custom native-package' |
27 | 28 |
|
28 | 29 | permissions: |
29 | 30 | id-token: write # This is required for requesting the JWT |
@@ -52,19 +53,19 @@ jobs: |
52 | 53 | - name: Show changelog |
53 | 54 | run: echo "CHANGELOG=$(git log --pretty='%h %al %B' ${{ github.event.before }}..${{ github.sha }})" | tr -d "\n\r\'" | cut -c -256 >> "$GITHUB_ENV" |
54 | 55 | - name: Run the script (custom runtime with native-package) |
55 | | - if: ${{ github.event_name == 'push' || inputs.runtime == 'custom native-package' }} |
| 56 | + if: ${{ (github.event_name == 'push' && env.default-runtime == 'custom native-package') || inputs.runtime == 'custom native-package' }} |
56 | 57 | run: ./scripts/buildAndDeployLambdaNativePackage.sh 64m '${{ env.CHANGELOG }}' |
57 | 58 | shell: bash |
58 | 59 | - name: Run the script (custom runtime with assembly.jar) |
59 | | - if: ${{ inputs.runtime == 'custom assembly' }} |
| 60 | + if: ${{ (github.event_name == 'push' && env.default-runtime == 'custom assembly') || inputs.runtime == 'custom assembly' }} |
60 | 61 | run: ./scripts/buildAndDeployLambdaAssembly.sh '${{ env.CHANGELOG }}' 'assembly' |
61 | 62 | shell: bash |
62 | 63 | - name: Run the script (java21 runtime without snapstart) |
63 | | - if: ${{ inputs.runtime == 'java21 pure' }} |
| 64 | + if: ${{ (github.event_name == 'push' && env.default-runtime == 'java21 pure') || inputs.runtime == 'java21 pure' }} |
64 | 65 | run: ./scripts/buildAndDeployLambdaAssembly.sh '${{ env.CHANGELOG }}' 'pure' |
65 | 66 | shell: bash |
66 | 67 | - name: Run the script (java21 runtime with snapstart) |
67 | | - if: ${{ inputs.runtime == 'java21 snapstart' }} |
| 68 | + if: ${{ (github.event_name == 'push' && env.default-runtime == 'java21 snapstart') || inputs.runtime == 'java21 snapstart' }} |
68 | 69 | run: ./scripts/buildAndDeployLambdaAssembly.sh '${{ env.CHANGELOG }}' 'snapstart' |
69 | 70 | shell: bash |
70 | 71 |
|
|
0 commit comments