-
Notifications
You must be signed in to change notification settings - Fork 2.3k
60 lines (50 loc) · 1.77 KB
/
Copy pathsync-content-engine.yml
File metadata and controls
60 lines (50 loc) · 1.77 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
54
55
56
57
58
59
60
name: Sync content-engine copy
on:
workflow_dispatch:
push:
branches:
- main
permissions:
contents: read
concurrency:
group: sync-content-engine-copy
cancel-in-progress: true
jobs:
sync-content:
name: Copy content and open content-engine PR
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout course repository
uses: actions/checkout@v4
with:
path: copilot-cli-for-beginners
- name: Checkout content-engine repository
uses: actions/checkout@v4
with:
repository: github/cse-content-engine
token: ${{ secrets.GH_AW_GITHUB_TOKEN }}
path: cse-content-engine
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Copy course content into content-engine
working-directory: copilot-cli-for-beginners
env:
CONTENT_ENGINE_DESTINATION_ROOT: ${{ github.workspace }}/cse-content-engine/content/learning-pathways/copilot-cli-for-beginners
run: npm run copy:content-engine
- name: Create content-engine pull request
uses: peter-evans/create-pull-request@v7
with:
path: cse-content-engine
token: ${{ secrets.GH_AW_GITHUB_TOKEN }}
commit-message: "Update Copilot CLI for Beginners content"
title: "Update Copilot CLI for Beginners content"
body: |
This automated PR syncs the latest `github/copilot-cli-for-beginners`
content into the content-engine learning pathway.
Source commit: ${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}
branch: update/copilot-cli-for-beginners-content
base: main
delete-branch: true