-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from chizmw/regenerate-png-examples-on-version…
…-tag Regenerate png examples on version tag
- Loading branch information
Showing
8 changed files
with
98 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
kind: Added | ||
body: showcase full-on jinx rendering | ||
time: 2023-04-17T08:50:11.559488+01:00 | ||
custom: | ||
GithubIssue: "" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
--- | ||
name: Generate PNG Samples | ||
|
||
# yamllint disable rule:truthy | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
generate-samples: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Setup Poetry | ||
uses: abatilo/actions-poetry@v2 | ||
with: | ||
poetry-version: 1.4.2 | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Get JSON | ||
shell: bash | ||
run: | | ||
make grab-some-scripts | ||
- name: Generate samples | ||
shell: bash | ||
env: | ||
BOTC_PDF2IMAGE: yes-please | ||
run: | | ||
sudo apt-get install -y poppler-utils | ||
make all-scripts | ||
# and eventually we'll create a PR for this | ||
# but we need to make sure we don't end up in a loop | ||
# of generate -> new version -> generate -> new version ... | ||
|
||
- name: Create Pull Request | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
title: Regenerate PNG sample images [auto-generated] | ||
# add some labels | ||
labels: automatic-pr, generate-pngs | ||
# this is the name of the branch created to hold the changes for the | ||
# PR | ||
branch: generate-pngs/${{ github.sha }} | ||
# just to be extra safe we specify that we want to merge into the | ||
# default branch | ||
base: ${{ github.event.repository.default_branch }} | ||
# no need to keep the branch around after the PR is merged | ||
delete-branch: true | ||
# ignore any (accidental?) changes outside of the user_access/ dir | ||
add-paths: | | ||
generated/ | ||
# yamllint disable-line rule:line-length | ||
# https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#triggering-a-workflow-from-a-workflow | ||
token: ${{ secrets.CHISEL_GITHUB_TOKEN }} | ||
|
||
- name: Check outputs | ||
if: ${{ steps.cpr.outputs.pull-request-number }} | ||
# yamllint disable rule:line-length | ||
run: | | ||
echo "::notice::Pull Request Created - ${{ steps.cpr.outputs.pull-request-url }}" | ||
# yamllint enable rule:line-length |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "botc-json2pdf" | ||
version = "0.0.13" | ||
version = "0.0.14a0" | ||
description = "" | ||
authors = ["Chisel <[email protected]>"] | ||
readme = "README.md" | ||
|