Skip to content

update issue data

update issue data #202

Workflow file for this run

name: update issue data
on:
schedule:
# run at 2:15am on Saturdays
- cron: '15 2 * * SAT'
env:
GITHUB_USERNAME: ${{ secrets.GH_USERNAME }}
GITHUB_API_TOKEN: ${{ secrets.GH_API_TOKEN }}
ZENHUB_API_TOKEN: ${{ secrets.ZENHUB_API_TOKEN }}
jobs:
generate-iteration-report:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
ref: ${{ github.head_ref }}
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Get data for issues modified since last run and save in data file
run: python .github/get_issues.py
- name: Commit changes
uses: EndBug/add-and-commit@v4
with:
author_name: GitHub Action
author_email: [email protected]
message: "Update issue data from GitHub Actions"
add: "data/*" # could just do data/issues.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Push changes
uses: ad-m/[email protected]
if: ${{ github.event_name == 'push' }}
with:
github_token: ${{ secrets.GH_API_TOKEN }}
branch: ${{ github.ref }}