-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.07 KB
/
mime-sync.yml
File metadata and controls
43 lines (37 loc) · 1.07 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
name: MIME database sync
on:
schedule:
- cron: '0 3 * * 1'
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0.x
- name: Restore dependencies
run: dotnet restore
- name: Run MIME sync tool
run: dotnet run --project ManagedCode.MimeTypes.Sync --configuration Release -- --prefer-remote
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "chore: sync MIME database"
title: "chore: sync MIME database"
body: |
Automated update of MIME database from configured sources.
branch: chore/sync-mime-database
delete-branch: true
labels: |
automation
dependencies