Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/daily_job.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Daily Job

on:
schedule:
# runs daily at 00:00 UTC
- cron: "0 0 * * *"

jobs:
check-commits:
runs-on: ubuntu-latest
if: github.repository_owner == 'jbosstm'
outputs:
recent_commits: ${{ steps.check.outputs.recent_commits }}

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Check for commits in the last 24 hours
id: check
run: |
COUNT=$(git rev-list --count --since="24 hours ago" HEAD)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

if [ "$COUNT" -gt 0 ]; then
echo "recent_commits=true" >> $GITHUB_OUTPUT
else
echo "recent_commits=false" >> $GITHUB_OUTPUT
fi

jdk25:
needs: check-commits
if: github.repository_owner == 'jbosstm' && needs.check-commits.outputs.recent_commits == 'true'
uses: ./.github/workflows/parser.yml
with:
jdk_versions: '["25"]'