-
Notifications
You must be signed in to change notification settings - Fork 21
37 lines (33 loc) · 863 Bytes
/
dotnet.yml
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
name: Generate Repo
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Generate Repo
run: dotnet run --repo
- name: check for changes
run: git status
- name: set username
run: git config user.name "Automated"
- name: set email
run: git config user.email "[email protected]"
- name: stage changed files
run: git add .
- name: commit changed files
run: git commit -m "Auto repo.json"
- name: fetch from master
run: git fetch origin master
- name: push code to master
run: git push origin HEAD:master