-
Notifications
You must be signed in to change notification settings - Fork 292
56 lines (48 loc) · 1.64 KB
/
mirror-dotnet-test-plugin.yml
File metadata and controls
56 lines (48 loc) · 1.64 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
name: Mirror dotnet-test plugin
on:
schedule:
- cron: '0 6 * * *'
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- name: Checkout this repository
uses: actions/checkout@v4
- name: Checkout dotnet/skills repository
uses: actions/checkout@v4
with:
repository: dotnet/skills
path: dotnet-skills-clone
sparse-checkout: plugins/dotnet-test
- name: Sync dotnet-test skills to .github
run: |
mkdir -p .github/skills
cp -r dotnet-skills-clone/plugins/dotnet-test/skills/. .github/skills
- name: Sync dotnet-test agents to .github
run: |
mkdir -p .github/agents
cp -r dotnet-skills-clone/plugins/dotnet-test/agents/. .github/agents
- name: Check for changes
id: changes
run: |
git add .github
if git diff --cached --quiet; then
echo "has_changes=false" >> "$GITHUB_OUTPUT"
else
echo "has_changes=true" >> "$GITHUB_OUTPUT"
fi
- name: Create pull request
if: steps.changes.outputs.has_changes == 'true'
uses: peter-evans/create-pull-request@v7
with:
commit-message: "Mirror dotnet-test plugin from dotnet/skills"
title: "Mirror dotnet-test plugin from dotnet/skills"
body: |
Automated sync of the `dotnet-test` plugin from [dotnet/skills](https://github.com/dotnet/skills/tree/main/plugins/dotnet-test).
branch: mirror/dotnet-test-plugin
delete-branch: true
add-paths: .github