Skip to content

generate projects data #4

generate projects data

generate projects data #4

name: generate projects data
on:
# schedule:
# - cron: '0 */6 * * *' # every 6 hours
workflow_dispatch:
env:
PROJECT_ID: 70 # <== customize this per team/project
SNAPSHOT_PATH: ./snapshots # <== customize where you want .json files to live
SPRINT_NAME: Sprint-44 # <== customize this to your current sprint name
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # <== ensure this secret is set in your repo
jobs:
example:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
issues: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use GitHub CLI
run: |
gh auth status
gh issue list --repo fleetdm/fleet --limit 5
- name: Download projects data
run: |
mkdir -p .tmp
echo "Fetch all items (unfiltered)..."
gh project item-list ${{ env.PROJECT_ID }} --org fleetdm --limit 1000 --format json > .tmp/items.json
head -n 10 .tmp/items.json