Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: prevent commit from rich-codex run #339

Merged
merged 5 commits into from
Mar 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/rich-codex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ outputs:
- command: "poetry run ncdump-rich ./demo/example.nc"
title: Latest Rich NcDump
img_paths:
- ./docs/demo/latest.png
- ./demo/latest.png
19 changes: 17 additions & 2 deletions .github/workflows/latest-screengrab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,22 @@ jobs:
- name: Generate latest terminal images with rich-codex
uses: ewels/rich-codex@v1
with:
commit_changes: "true"
commit_changes: "false"
clean_img_paths: |
./docs/demo/latest.png
./demo/latest.png

- name: Init new repo in dist folder and commit generated files
run: |
cd demo/
git init
git add -A
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -m 'deploy'
- name: Force push to destination branch
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: example-image
force: true
directory: ./demo/
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Usage

Please see the `Command-line Reference <Usage_>`_ for details.

.. image:: ./demo/latest.png
.. image:: https://raw.githubusercontent.com/engeir/ncdump-rich/example-image/latest.png
:width: 600

Examples
Expand Down
Binary file modified demo/latest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.