-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (31 loc) · 865 Bytes
/
cron.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Cron
on:
workflow_dispatch:
schedule:
- cron: '0 0 1 * *'
jobs:
export:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Figma Export PDFs 🦾
id: figmaExportPdfs
uses: ./
with:
accessToken: ${{ secrets.FIGMA_ACCESS_TOKEN }}
fileKey: 'VQxKo2pnaksjE7Vql999Qv'
ids: '["120:3","138:28"]'
- name: Log ℹ️
run: |
echo "Results"
echo "pdfs: $pdfs"
echo "outDir: $outDir"
env:
pdfs: ${{ steps.figmaExportPdfs.outputs.pdfs }}
outDir: ${{ steps.figmaExportPdfs.outputs.outDir }}
- name: Upload artifact 📂
uses: actions/upload-artifact@v4
with:
name: my-pdfs
path: ${{ steps.figmaExportPdfs.outputs.outDir }}