Skip to content

Commit 9b61b45

Browse files
authored
Adding GH action to run the sync projects board script daily (#242)
Signed-off-by: Mark Rossetti <[email protected]> Signed-off-by: Mark Rossetti <[email protected]>
1 parent 5dcf6a4 commit 9b61b45

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
2+
name: sig-windows-project-board-sync
3+
4+
on:
5+
schedule:
6+
- cron: "0 14 * * *" # Every day at 14:00 UTC / 6:00 PST
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
name: sig-windows-project-board-sync
12+
runs-on: ubuntu-22.04
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: sync SIG-Windows project - kubernetes org
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.SYNC_PROJECTS_PAT }}
19+
run: |
20+
./hack/sync-project-board.sh

hack/sync-project-board.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,21 @@ set -e
33
set -u
44
set -o pipefail
55

6+
## DESCRIPTION:
7+
##
8+
## This script queries all repos in a given github org and adds and issues
9+
## with label 'sig/windows' to a specified project board.
10+
##
11+
## REREQS:
12+
##
13+
## This script assumes there is a github PAT in the GITHUB_TOKEN env var
14+
## that was created with the following permissions:
15+
## - repo (all)
16+
## - read:org
17+
## - user (all)
18+
## - read:enterprise
19+
## - project (all)
20+
621
GH_ORG=${GH_ORG:-'kubernetes'}
722
PROJECT_NUMBER=${PROJECT_NUMBER:-'82'}
823

0 commit comments

Comments
 (0)