-
Notifications
You must be signed in to change notification settings - Fork 19
chore(ci): trigger daily CI in v3.x-java branch #2198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
88058c3
empty commit
rishav-karanjit aaf506b
m
rishav-karanjit 2dd100d
Potential fix for pull request finding 'CodeQL / Workflow does not co…
rishav-karanjit c9d8301
m
rishav-karanjit 0619bf8
Merge branch 'daily-ci-java-3x-trigger' of github.com:aws/aws-databas…
rishav-karanjit 03ce84c
m
rishav-karanjit 66d5c40
m
rishav-karanjit aab91a5
Apply suggestion from @rishav-karanjit
rishav-karanjit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| name: Daily CI (v3.x-java) | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: "00 13 * * 1-5" | ||
| pull_request: | ||
| paths: .github/workflows/daily_ci_java_3x.yml | ||
|
|
||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
|
|
||
| jobs: | ||
| trigger: | ||
| permissions: | ||
| actions: write | ||
| contents: read | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Fail after end of support | ||
| run: | | ||
| CUTOFF="2026-08-01" | ||
| NOW=$(date -u +%Y-%m-%d) | ||
| if [[ "$NOW" > "$CUTOFF" || "$NOW" == "$CUTOFF" ]]; then | ||
| echo "CI disabled as v3.x is end of support after $CUTOFF" | ||
| exit 1 | ||
| fi | ||
| - uses: actions/github-script@v7 | ||
| with: | ||
| script: | | ||
| await github.rest.actions.createWorkflowDispatch({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| workflow_id: 'daily_ci.yml', | ||
| ref: 'v3.x-Java' | ||
| }); | ||
| notify: | ||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
| id-token: write | ||
| needs: [trigger] | ||
| if: ${{ failure() && github.event_name == 'schedule'}} | ||
| uses: aws/aws-cryptographic-material-providers-library/.github/workflows/slack-notification.yml@main | ||
| with: | ||
| message: "Failed to trigger Daily CI for branch v3.x-Java (see daily_ci_java_3x.yml on main) on `${{ github.repository }}`. View run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" | ||
| secrets: | ||
| SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_CI }} | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.