Update Mime-DB #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |