Skip to content

Commit

Permalink
🔧 chore(commit-lint.yml): update commit-lint.yml to trigger on push e…
Browse files Browse the repository at this point in the history
…vents only

🔧 chore(vhs.yml): update vhs.yml to trigger on push events only and include specific paths
🔥 chore(commit-lint.yml): remove commit-lint.yml workflow
🔥 chore(vhs.yml): remove vhs.yml workflow
🔧 chore(vhs.yml): update vhs.yml to include specific paths and remove unnecessary steps
🔧 chore(vhs.yml): update vhs.yml to use git-auto-commit-action and specify file pattern for commit
  • Loading branch information
jupegarnica committed Aug 1, 2023
1 parent 6b7be8f commit 127ca6a
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 86 deletions.
3 changes: 1 addition & 2 deletions .github/commit-lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Lint Commit Messages
on:
workflow_dispatch:
on: [push]

jobs:
commitlint:
Expand Down
62 changes: 20 additions & 42 deletions .github/vhs.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,31 @@
name: vhs
on:
workflow_dispatch:
# push:
# paths:
# - .github/workflows/vhs.yml
# - vhs/**
# # - src/**
# workflow_run:
# workflows: ["test"]
# branches: ['main']
# types: [completed]
# on:
# push:
# paths:
# - src/**
# - .github/workflows/vhs.yml
# - .github/demo/demo.tape
# workflow_run:
# workflows: ["test"]
# branches: ['main']
# types: [completed]
on:
push:
paths:
- src/**
- .github/workflows/vhs.yml
- .github/demo/demo.tape
jobs:
vhs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install batcat
run: which bat || sudo apt-get install bat
- uses: denoland/setup-deno@v1
- run: deno task install
- run: cd vhs
- uses: charmbracelet/vhs-action@v1
with:
path: './vhs/demo.tape'

- name: Pull request changes
uses: peter-evans/create-pull-request@v3
path: '.github/demo/demo.tape'
- uses: stefanzweifel/git-auto-commit-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Update generated VHS GIF"
title: "Update generated VHS GIF"
body: "Update generated VHS GIF"




# - 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: actions@github.com
# commit_author: vhs-action 📼 <actions@github.com>
# file_pattern: 'vhs/*.gif'
commit_message: Update generated VHS GIF
branch: main
commit_user_name: vhs-action 📼
commit_user_email: actions@github.com
commit_author: vhs-action 📼 <actions@github.com>
file_pattern: '*.gif'
11 changes: 0 additions & 11 deletions .github/workflows/commit-lint.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/vhs.yml

This file was deleted.

Binary file modified vhs/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 127ca6a

Please sign in to comment.