Project Board Automation (External Script Version) #12926
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}) |