Github Action with a cronjob trigger #225
This file contains 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
name: Github Action with a cronjob trigger | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
main-job: | |
name: Main Job | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Fetch | |
run: bash dev.sh | |
- name: Debug | |
run: du -hs output/raw.txt; du -hs unique.txt; tree .. | |
- name: Update Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
name: ${{ steps.date.outputs.date }} | |
tag_name: ${{ github.ref_name }} | |
files: unique.txt | |
keepalive-job: | |
name: Keepalive Workflow | |
runs-on: ubuntu-latest | |
permissions: | |
actions: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: gautamkrishnar/keepalive-workflow@v2 |