Skip to content

Commit

Permalink
chore: Create ARF.yml workflow
Browse files Browse the repository at this point in the history
generates release note info for all apps
  • Loading branch information
Philip-Larsen-Donnelly authored Oct 10, 2023
1 parent d6537d8 commit 5ad1da0
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/ARF.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Data Fetcher

on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '52 23 * * *'
workflow_dispatch:

jobs:
build:

runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests
- name: Run the script
run: python3 tools/app-release-notes/generate_app_notes.py
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.DHIS2_BOT_GITHUB_TOKEN }}

- name: touch the updated file
run: ls -al website/data/app_releases.json
shell: bash

- name: Commit & Push changes
uses: actions-js/push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}


0 comments on commit 5ad1da0

Please sign in to comment.