Skip to content

Project Board Automation (External Script Version) #12926

Project Board Automation (External Script Version)

Project Board Automation (External Script Version) #12926

name: Project Board Automation (External Script Version)
on:
issues:
types: [opened, edited, closed]
pull_request:
types: [opened, closed]
schedule:
# Run every hour
- cron: '0/5 * * * *'
workflow_dispatch:
concurrency:
group: 'project-automation-external'
cancel-in-progress: true
jobs:
update-project-dates:
runs-on: ubuntu-latest
permissions:
issues: read
pull-requests: read
repository-projects: write
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Update project item dates
uses: actions/github-script@v7
with:
github-token: ${{ secrets.PROJECT_PAT }}
script: |
const script = require('.github/scripts/project-automation.js');
await script({github, context, core})