Skip to content

Bot - Generate download files #7484

Bot - Generate download files

Bot - Generate download files #7484

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@v3
- uses: actions/setup-node@v3
- 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]"