Skip to content

Commit

Permalink
Don't include built theme files in PRs (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamyGolden authored Jan 4, 2025
1 parent 0e4f0d2 commit b7ec1a7
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ Fixes #ISSUE_NUMBER

## Checklist

- [ ] I have included the built files `./colors/*.vim` in a separate commit and followed [the build instructions](https://github.com/tinted-theming/tinted-vim/blob/main/CONTRIBUTING.md)
- [ ] I have **NOT** included the built files `./colors/*.vim` in this
PR since the bot will build the files on merge to `main`
- [ ] I have confirmed that my changes produce no regressions after building
22 changes: 13 additions & 9 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
name: Check that building template does not produce additional changes
name: "Pull Request"

on:
pull_request:
branches:
- main
paths:
- "colors/*.vim"

jobs:
check:
check-generated-theme-directories:
runs-on: ubuntu-latest
steps:
- name: Fetch the repository code
- name: Checkout repository
uses: actions/checkout@v4
- name: Update schemes
uses: tinted-theming/tinted-builder-rust@latest
- name: Check if there are changes
run: git diff --exit-code

- name: Check for changes in restricted directories
run: |
echo "Error: Changes detected in generated theme directory."
echo "this directory should be generated by tinted-theming-bot after merge."
exit 1
8 changes: 6 additions & 2 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
name: Update with the latest tinted-theming colorschemes
on:
push:
branches:
- main
paths:
- "templates/tinted-vim.mustache"
workflow_dispatch:
schedule:
- cron: "0 0 * * 0" # https://crontab.guru/every-week
- cron: "0 0 * * *" # https://crontab.guru/every-day

jobs:
build-and-commit:
Expand All @@ -11,4 +16,3 @@ jobs:
token: ${{ secrets.BOT_ACCESS_TOKEN }}
with:
ref: ${{ github.head_ref }}

0 comments on commit b7ec1a7

Please sign in to comment.