-
-
Notifications
You must be signed in to change notification settings - Fork 405
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
Add GIFs to CI via vhs-action #3810
base: main
Are you sure you want to change the base?
Conversation
Test262 conformance changes
|
.github/workflows/artifacts.yml
Outdated
build_cli_tape: | ||
name: Generate boa_cli GIF | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- run: cargo install --path ./cli | ||
# Below is from vhs-actions examples | ||
# https://github.com/charmbracelet/vhs-action/blob/main/examples/auto-commit.yml | ||
- uses: charmbracelet/vhs-action@v1 | ||
with: | ||
path: './.github/tapes/boa_cli.tape' | ||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
commit_message: Update generated VHS GIF | ||
branch: main | ||
commit_user_name: vhs-action 📼 | ||
commit_user_email: [email protected] | ||
commit_author: vhs-action 📼 <[email protected]> | ||
file_pattern: '*.gif' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was thinking more about this, and maybe this shouldn't be a direct commit, but a check on the PRs that compares the current version of the GIF with the GIF generated by the tool, and throws if both differ.
d88ac4c
to
9282888
Compare
We could maybe only enable it for PRs, since when we merge into main, we squash the commits. That would make it easier to preserve a reasonable history. |
This Pull Request is to propose adding a GIF to
boa_cli
and thevhs-action
CI to update the GIF in CI.With
vhs-action
, we could also look into automating more GIFs for our docs that can be built out during the artifacts CI.The one unfortunate thing is that the GIF generation for
boa_cli
won't take in any changes fromboa_engine
as it is set to the currently released version in it'sCargo.toml
.I am also a bit concerned about
stefanzweifel/git-auto-commit-action@v4
as I'm not entirely sure how it will affect the commit history.EDIT: VHS can be found here for reference