Auto Catalog Refresh Script #268
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
name: Auto Catalog Refresh Script | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '35 7 * * *' | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "greet" | |
auto_catalog_refresh_script: | |
# 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: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: catalog_auto_refresh | |
- name: Script launch | |
working-directory: ./scripts/auto_catalog_refresh | |
run: ./script.sh | |
- name: Add & Commit | |
uses: EndBug/[email protected] | |
with: | |
add: 'catalogs/catalog.auto_refresh.ttl' | |
message: 'Automatic catalog update' | |
author_name: 'Pierre Maillot' | |
author_email: '[email protected]' | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: catalog_auto_refresh |