From dc690d485e892d8a9b54438b8fbb89c687e52a22 Mon Sep 17 00:00:00 2001 From: John Mertic Date: Mon, 12 Feb 2024 08:20:22 -0500 Subject: [PATCH] Add job to build Overview Decks on first day of the month Signed-off-by: John Mertic --- .github/workflows/build-decks.yml | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/build-decks.yml diff --git a/.github/workflows/build-decks.yml b/.github/workflows/build-decks.yml new file mode 100644 index 0000000..ddc6511 --- /dev/null +++ b/.github/workflows/build-decks.yml @@ -0,0 +1,34 @@ +name: Update Data Sources +on: + schedule: + - cron: '0 0 1 * *' + workflow_dispatch: +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Check out repo + uses: actions/checkout@v3 + - name: Set up Python 3.x + uses: actions/setup-python@v4 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r overview_deck/requirements.txt + - name: Run build + run: | + python overview_deck/build.py + env: + GITHUB_TOKEN: ${{ secrets.PAT }} + - name: Create Pull Request + uses: peter-evans/create-pull-request@v5 + with: + token: ${{ secrets.PAT }} + branch-suffix: timestamp + path: . + title: Update Overview Decks + labels: automerge + commit-message: Update Data Sources + signoff: true