Skip to content

Commit

Permalink
ci: Fix cron jobs to use github token for gh cli calls and specify ja…
Browse files Browse the repository at this point in the history
…va version (#16175)
  • Loading branch information
rbarkerSL authored Oct 26, 2024
1 parent 76c54fc commit 768ba55
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 19 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/flow-artifact-determinism.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ on:
description: "Java JDK Version:"
type: string
required: false
default: "21"
default: "21.0.4"
push:
branches:
- develop
Expand All @@ -55,7 +55,7 @@ jobs:
with:
ref: ${{ github.event.inputs.ref || '' }}
java-distribution: ${{ inputs.java-distribution || 'temurin' }}
java-version: ${{ inputs.java-version || '21' }}
java-version: ${{ inputs.java-version || '21.0.4' }}
secrets:
gradle-cache-username: ${{ secrets.GRADLE_CACHE_USERNAME }}
gradle-cache-password: ${{ secrets.GRADLE_CACHE_PASSWORD }}
Expand All @@ -66,7 +66,7 @@ jobs:
with:
ref: ${{ github.event.inputs.ref || '' }}
java-distribution: ${{ inputs.java-distribution || 'temurin' }}
java-version: ${{ inputs.java-version || '21' }}
java-version: ${{ inputs.java-version || '21.0.4' }}
secrets:
gradle-cache-username: ${{ secrets.GRADLE_CACHE_USERNAME }}
gradle-cache-password: ${{ secrets.GRADLE_CACHE_PASSWORD }}
4 changes: 2 additions & 2 deletions .github/workflows/node-flow-build-application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ on:
description: "Java JDK Version:"
type: string
required: false
default: "21"
default: "21.0.4"
java-distribution:
description: "Java JDK Distribution:"
type: string
Expand All @@ -63,7 +63,7 @@ jobs:
name: Code
uses: ./.github/workflows/node-zxc-compile-application-code.yaml
with:
java-version: ${{ github.event.inputs.java-version || '21' }}
java-version: ${{ github.event.inputs.java-version || '21.0.4' }}
java-distribution: ${{ github.event.inputs.java-distribution || 'temurin' }}
enable-unit-tests: ${{ github.event_name == 'push' || github.event.inputs.enable-unit-tests == 'true' }}
enable-hapi-tests-misc: ${{ github.event.inputs.enable-hapi-tests == 'true' }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/node-flow-deploy-adhoc-artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ on:
description: "Java JDK Version:"
type: string
required: false
default: "21"
default: "21.0.4"
java-distribution:
description: "Java JDK Distribution:"
type: string
Expand All @@ -53,7 +53,7 @@ jobs:
trigger-env-deploy: none
release-profile: AdhocCommit
dry-run-enabled: ${{ github.event.inputs.dry-run-enabled == 'true' }}
java-version: ${{ github.event.inputs.java-version || '21' }}
java-version: ${{ github.event.inputs.java-version || '21.0.4' }}
java-distribution: ${{ github.event.inputs.java-distribution || 'temurin' }}
gradle-version: ${{ github.event.inputs.gradle-version || 'wrapper' }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/node-flow-fsts-custom-regression.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ on:
description: "Java JDK Version:"
type: string
required: false
default: "21"
default: "21.0.4"
java-distribution:
description: "Java JDK Distribution:"
type: string
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
branch-name: ${{ github.ref_name }}
slack-results-channel: ${{ github.event.inputs.slack-results-channel }}
slack-summary-channel: ${{ github.event.inputs.slack-summary-channel }}
java-version: ${{ github.event.inputs.java-version || '21' }}
java-version: ${{ github.event.inputs.java-version || '21.0.4' }}
java-distribution: ${{ github.event.inputs.java-distribution || 'temurin' }}
gradle-version: ${{ github.event.inputs.gradle-version || 'wrapper' }}
use-branch-for-slack-channel: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/node-flow-pull-request-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ jobs:
with:
ref: ${{ github.event.inputs.ref || '' }}
java-distribution: temurin
java-version: 21
java-version: 21.0.4
secrets:
gradle-cache-username: ${{ secrets.GRADLE_CACHE_USERNAME }}
gradle-cache-password: ${{ secrets.GRADLE_CACHE_PASSWORD }}
2 changes: 1 addition & 1 deletion .github/workflows/node-zxc-build-release-artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ on:
description: "Java JDK Version:"
type: string
required: false
default: "21"
default: "21.0.4"
gradle-version:
description: "Gradle Version:"
type: string
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/node-zxc-compile-application-code.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ on:
description: "Java JDK Version:"
type: string
required: false
default: "21"
default: "21.0.4"
node-version:
description: "NodeJS Version:"
type: string
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/platform-pull-request-extended-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ on:
description: "Java JDK Version:"
type: string
required: false
default: "21"
default: "21.0.4"
java-distribution:
description: "Java JDK Distribution:"
type: string
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
branch-name: ${{ github.ref_name }}
slack-results-channel: ${{ github.event.inputs.slack-results-channel }}
slack-summary-channel: ${{ github.event.inputs.slack-summary-channel }}
java-version: ${{ github.event.inputs.java-version || '21' }}
java-version: ${{ github.event.inputs.java-version || '21.0.4' }}
java-distribution: ${{ github.event.inputs.java-distribution || 'temurin' }}
gradle-version: ${{ github.event.inputs.gradle-version || 'wrapper' }}
use-branch-for-slack-channel: false
Expand All @@ -86,7 +86,7 @@ jobs:
branch-name: ${{ github.ref_name }}
slack-results-channel: ${{ github.event.inputs.slack-results-channel }}
slack-summary-channel: ${{ github.event.inputs.slack-summary-channel }}
java-version: ${{ github.event.inputs.java-version || '21' }}
java-version: ${{ github.event.inputs.java-version || '21.0.4' }}
java-distribution: ${{ github.event.inputs.java-distribution || 'temurin' }}
gradle-version: ${{ github.event.inputs.gradle-version || 'wrapper' }}
use-branch-for-slack-channel: false
Expand All @@ -111,7 +111,7 @@ jobs:
branch-name: ${{ github.ref_name }}
slack-results-channel: ${{ github.event.inputs.slack-results-channel }}
slack-summary-channel: ${{ github.event.inputs.slack-summary-channel }}
java-version: ${{ github.event.inputs.java-version || '21' }}
java-version: ${{ github.event.inputs.java-version || '21.0.4' }}
java-distribution: ${{ github.event.inputs.java-distribution || 'temurin' }}
gradle-version: ${{ github.event.inputs.gradle-version || 'wrapper' }}
use-branch-for-slack-channel: false
Expand All @@ -136,7 +136,7 @@ jobs:
branch-name: ${{ github.ref_name }}
slack-results-channel: ${{ github.event.inputs.slack-results-channel }}
slack-summary-channel: ${{ github.event.inputs.slack-summary-channel }}
java-version: ${{ github.event.inputs.java-version || '21' }}
java-version: ${{ github.event.inputs.java-version || '21.0.4' }}
java-distribution: ${{ github.event.inputs.java-distribution || 'temurin' }}
gradle-version: ${{ github.event.inputs.gradle-version || 'wrapper' }}
use-branch-for-slack-channel: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zxc-verify-docker-build-determinism.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ on:
description: "Java JDK Version:"
type: string
required: false
default: "21"
default: "21.0.4"

secrets:
gradle-cache-username:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zxc-verify-gradle-build-determinism.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ on:
description: "Java JDK Version:"
type: string
required: false
default: "21"
default: "21.0.4"

secrets:
gradle-cache-username:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/zxcron-extended-test-suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ jobs:
# branch.
- name: Check for tags
id: check-tags-exist
env:
GH_TOKEN: ${{ github.token }}
run: |
# Check if the tag exists and if so grab its commit id
set +e
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/zxcron-promote-build-candidate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ on:
permissions:
actions: read
contents: read
statuses: write

defaults:
run:
Expand Down Expand Up @@ -52,6 +53,8 @@ jobs:

- name: Find Build Candidates
id: find-build-candidates
env:
GH_TOKEN: ${{ github.token }}
run: |
TAG_PATTERN="xts-pass-*"
CANDIDATE_TAG="$(git tag --list --sort=-version:refname "${TAG_PATTERN}" | head --lines 1)"
Expand Down

0 comments on commit 768ba55

Please sign in to comment.