-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (35 loc) · 1.07 KB
/
update.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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Update Shared MIME-Info database
permissions:
contents: write
pull-requests: write
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * MON'
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
tools: composer:v2
- name: Install Composer dependencies
uses: ramsey/composer-install@v2
with:
dependency-versions: lowest
composer-options: --prefer-dist --prefer-stable
- name: Update the database
run: composer run update-db
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
title: Automated updates from upstream Shared MIME-Info
commit-message: "[bot] updates mime-info database from upstream"
base: main
branch: mime-info-updates
delete-branch: true