-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 831 Bytes
/
generate-png.yml
File metadata and controls
41 lines (34 loc) · 831 Bytes
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
name: Generate PNG
on:
push:
branches:
- main
paths:
- '**.go'
permissions:
contents: write
jobs:
generate:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- name: Install dependencies
run: go get .
- name: Generate PNG
run: go run main.go
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: "docs: Regenerate PNG"
title: "docs: Regenerate PNG"
body: "Automated PNG regeneration."
branch: "update-png"
add-paths: vim-barcodes-a4.png