Skip to content

Bot - Generate download files #16404

Bot - Generate download files

Bot - Generate download files #16404

name: Bot - Generate download files
on:
schedule:
- cron: "0 * * * *"
permissions: write-all
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMMIT_USERNAME: "CI Bot - DevSoutinho"
COMMIT_EMAIL: "[email protected]"
jobs:
generate_downloadable_files:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'v20.14.0'
- name: Call Script
run: |
echo "[START]"
git pull origin main
git config --global user.name "${{ env.COMMIT_USERNAME }}"
git config --global user.email ${{ env.COMMIT_EMAIL }}
yarn install
yarn scripts:create:shareable_guides
echo "[END]"
git add .
git commit -m "docs: update downloadable files" || echo "Up to date with main"
git push origin HEAD
echo "[END]"