Skip to content

Auto Catalog Refresh Script #261

Auto Catalog Refresh Script

Auto Catalog Refresh Script #261

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