-
Notifications
You must be signed in to change notification settings - Fork 138
39 lines (33 loc) · 1.11 KB
/
url_check_workflow.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
38
39
name: Check Documentation for Broken Links
on:
schedule:
- cron: "0 10 * * 1-5" # Runs at 10:00 UTC on Mon, Tue, Wed, Thu and Fri. (see https://crontab.guru)
workflow_dispatch: # Run on manual trigger
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
- name: Build and run the url tester csproj
run: |
cd "URL Test"
dotnet build /p:Configuration=Release /v:quiet /p:WarningLevel=1 URLTest.csproj
dotnet run bin/Debug/net6.0/process.dll
continue-on-error: true
- name: Push to Branch
run: |-
if [[ $(git diff | wc -m) == 0 ]]; then
exit 0
fi
BRANCH=github-action-url-test
git config user.name GitHub Actions
git config user.email [email protected]
git checkout -b $BRANCH
git add .
git commit -m "Code generated by URLTest"
git push --set-upstream origin $BRANCH -f