Bot - Generate download files #17746
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: 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]" |