-
-
Notifications
You must be signed in to change notification settings - Fork 100
36 lines (33 loc) · 1002 Bytes
/
update-hsts-preload.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
name: publish
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0' # once a week
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_NOLOGO: true
defaults:
run:
shell: pwsh
jobs:
update_file:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core (global.json)
uses: actions/setup-dotnet@v4
- run: |
dotnet run --project tools/Meziantou.Framework.Http.Hsts.Generator
if ($LASTEXITCODE -ne 0) {
git config --global user.email "[email protected]"
git config --global user.name "meziantou"
git checkout -b update-hsts-preload
git add .
git commit -m "Update HSTS preload list"
git push origin update-hsts-preload
gh pr create --title "Update HSTS preload list" --body "Update HSTS preload list" --base main
}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}