Skip to content

Run Project on Schedule #480

Run Project on Schedule

Run Project on Schedule #480

Workflow file for this run

name: Run Project on Schedule
on:
schedule:
- cron: '0 20 * * *' # It is executed every day at 23:30 Iran time.
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2.7.1
with:
gradle-version: 7.4.2
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Retryable Gradlew Run
uses: nick-fields/retry@v2
with:
command: ./gradlew run --args=${{secrets.TOKEN}}
timeout_minutes: 3
max_attempts: 3