updateAudioformat #211
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
# This workflow creates the publish files | |
name: updateAudioformat | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push request events but only for the master branch and sources root folder | |
push: | |
branches: [ master ] | |
paths: | |
- 'sources/**' | |
#run it daily | |
schedule: | |
- cron: "6 3 * * *" | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
# This workflow contains a single job called "build" | |
update: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
- name: Install prerequisites | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y ffmpeg | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v4 | |
- name: Update audio format | |
run: ./build.sh update_format_all | |
- name: Add, commit and push | |
uses: EndBug/add-and-commit@v9.1.4 | |
with: | |
add: docs/db sources | |
message: Update audio format | |
push: true |