Repository navigation
53 lines (45 loc) · 1.58 KB
/
Copy pathcommunity-call-sync.yml
File metadata and controls
53 lines (45 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Sync PowerShell Community Call
on:
schedule:
- cron: '30 13 * * *' # Daily, after the GitHub discussions team is typically active
workflow_dispatch:
permissions:
contents: read
concurrency:
group: sync-community-call
cancel-in-progress: false
jobs:
sync-community-call:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Setup Node.js
uses: actions/setup-node@v7
with:
node-version: '24'
- name: Sync upcoming PowerShell Community Call events
env:
GITHUB_TOKEN: ${{ github.token }}
run: node .github/scripts/sync-community-call.mjs
- name: Create GitHub App token
id: app-token
uses: actions/create-github-app-token@v3
with:
client-id: ${{ vars.AUTOMATION_APP_CLIENT_ID }}
private-key: ${{ secrets.AUTOMATION_APP_PRIVATE_KEY }}
- name: Create pull request for synchronized events
uses: peter-evans/create-pull-request@v8.1.1
with:
token: ${{ steps.app-token.outputs.token }}
add-paths: |
content/calendar
branch: automation/sync-community-call
commit-message: Sync PowerShell Community Call
title: Sync PowerShell Community Call
body: |
Automated synchronization of the upcoming PowerShell Community Call events,
linking the latest agenda discussion from
https://github.com/PowerShell/PowerShell/discussions/categories/community-call
when one is found.
delete-branch: true