Skip to content
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
28 changes: 28 additions & 0 deletions .github/workflows/update-test-fixtures.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Update Test Scheme Fixtures
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *" # https://crontab.guru/every-day

jobs:
create-release-git-tag:
runs-on: ubuntu-latest
outputs:
git_tag_name: ${{ steps.git_tag_name.outputs.value }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.BOT_ACCESS_TOKEN }}

- name: Run script to update flake binary paths and SHAs
run: ./scripts/create_fixtures

- name: Commit the changes
id: auto_commit
uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v7.1.0
with:
commit_message: "Update test scheme fixtures"
commit_user_name: tinted-theming-bot
commit_user_email: tintedtheming@proton.me
commit_author: tinted-theming-bot <tintedtheming@proton.me>
4 changes: 2 additions & 2 deletions scripts/create_fixtures
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash

# Create fixtures for testing

Expand All @@ -25,7 +25,7 @@ main() {
rm -f "$schemes_file_path"
fi

mkdir "$fixtures_path"
mkdir -p "$fixtures_path"

git clone https://github.com/tinted-theming/schemes.git "$schemes_repo_dir"

Expand Down
Loading