-
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (44 loc) · 1.31 KB
/
main.yml
File metadata and controls
55 lines (44 loc) · 1.31 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: CI
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-16.04
name: Generate chart image
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Setup Node.js
uses: actions/setup-node@v1
- name: Install Dependencies
run: npm install
- name: Pull from current branch
run: git pull origin ${GITHUB_REF##*/}
- name: Create dist folder if note exists
run: mkdir -p dist
- name: generate proverb image
id: proverb-image
uses: ./
with:
name: "proverb.svg"
path: "images"
width: 400
height: 400
- name: Ensure the generated file exists
run: |
ls -l ${{ steps.proverb-image.outputs.image }}
test -f ${{ steps.proverb-image.outputs.image }}
- name: Push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Add images pulled from headless browser to folder
commit_options: '--no-verify --signoff'
- name: Archive chart image
uses: actions/upload-artifact@v7
with:
name: open-chart
path: open-chart.png
- name: Download all workflow run artifacts
uses: actions/download-artifact@v8