Skip to content

Update Mime-DB

Update Mime-DB #11

Workflow file for this run

on:
workflow_dispatch:
name: Update Mime-DB
jobs:
update-mime:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: ["cpp"]
steps:
- name: βœ… Checkout
uses: actions/[email protected]
- name: πŸ—οΈ Install build dependencies
run: "sudo apt-get update && sudo apt-get install git build-essential cmake"
- name: πŸ”¨ Compile
run: "mkdir build && cd build && cmake .. -Dpantomime_fetcher=ON && cmake --build . --config Debug"
- name: ♻️ Download Mime-DB
run: "wget https://raw.githubusercontent.com/jshttp/mime-db/master/db.json"
- name: πŸ“₯ Fetch Changes
run: "./build/fetcher db.json src/db.hpp"
- name: πŸ€– Run Clang-Format
run: "clang-format -i src/db.hpp"
- name: 🌍 Commit & Push changes
uses: EndBug/add-and-commit@v9
with:
push: true
add: "src/db.hpp"