File: db.yml

package info (click to toggle)
ruby-mini-mime 1.1.5-2~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 344 kB
  • sloc: ruby: 209; sh: 4; makefile: 4
file content (26 lines) | stat: -rw-r--r-- 652 bytes parent folder | download | duplicates (2)
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
name: Update MIME type DB

on:
  schedule:
    # 10am on the 1st every month https://crontab.guru/#0_10_1_*_*
    - cron: "0 10 1 * *"
  workflow_dispatch:

jobs:
  update_db:
    runs-on: ubuntu-latest
    name: "Update MIME type DB"
    steps:
      - uses: actions/checkout@v3
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: "2.7"
          bundler-cache: true
      - name: Update mime-types-data
        run: bundle update mime-types-data
      - name: Update DB
        run: bundle exec rake rebuild_db
      - name: Create PR
        run: bin/db_pull_request
        env:
          GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}