Skip to content

Downlod Framer script #287

Downlod Framer script

Downlod Framer script #287

name: Downlod Framer script
on:
schedule:
# every day at 12:30
- cron: '30 12 * * *'
workflow_dispatch:
jobs:
download:
timeout-minutes: 10
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository.
contents: write
actions: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org/
- uses: pnpm/action-setup@v4
with:
version: 9
run_install: false
# - name: Install pnpm dependencies (with cache)
# uses: covbot/pnpm-install-with-cache@v1
- run: pnpm i --frozen-lockfile false
# scripts
- run: pnpm download-framer
env:
FRAMER_SESSION: ${{ secrets.FRAMER_SESSION }}
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: New Framer Release
- run: gh workflow run release.yml --ref main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}