An action to sync values between items and organization-level (v2) project boards
org
: The name of the organization where the ProjectV2 board livesproject_id
: The number of the project to updateitem_property
: The property of the ProjectV2 itemsync_field
: The name of the field to sync the value forgithub_token
: A personal access token (PAT) withproject
write access
DO NOT hard-code your token in the Action config! This is a major security issue! Use repository secrets to store the token.
The following configuration will run the sync each time a push is made to the repo:
name: Test Action
on: [push]
jobs:
sync-field:
runs-on: ubuntu-latest
name: Run the project field sync
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run the sync
id: run-sync
uses: ./
with:
project_id: 123456
item_property: "created"
org: "myorg"
sync_field: "Open Date"
github_token: ${{ secrets.AUTOMATION_TOKEN }}
The scripts and documentation in this project are released under the MIT License