2021-05-18 16:32:33 +02:00
|
|
|
name: Maintenance
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
2021-05-19 08:13:43 +02:00
|
|
|
- cron: '0 0 * * *' #once a day
|
2021-05-18 16:32:33 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2021-05-18 17:06:30 +02:00
|
|
|
name: Maintenance Time
|
2021-05-18 16:32:33 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
|
|
|
|
# Setup Java environment for the next steps
|
|
|
|
- name: Setup Java
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: 15
|
|
|
|
|
|
|
|
# Check out current repository
|
|
|
|
- name: Fetch Sources
|
|
|
|
uses: actions/checkout@v2.3.1
|
|
|
|
|
|
|
|
# Run Maintenance Tasks
|
2021-05-18 17:06:30 +02:00
|
|
|
- name: Maintenance Run
|
2021-05-18 16:32:33 +02:00
|
|
|
run: ./gradlew :maintenance-tasks:run
|
|
|
|
env:
|
|
|
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
|
|
OWNER_NAME: 'Shabinder'
|
|
|
|
REPO_NAME: 'SpotiFlyer'
|
|
|
|
BRANCH_NAME: 'main'
|
|
|
|
FILE_PATH: 'README.md'
|
|
|
|
IMAGE_DESCRIPTION: 'Analytics'
|
|
|
|
COMMIT_MESSAGE: 'Analytics Updated'
|
2021-05-18 21:51:28 +02:00
|
|
|
TAG_NAME: 'HTI'
|