mirror of
https://github.com/fmhy/bookmarks.git
synced 2026-03-11 08:55:39 +00:00
Add GitHub Actions workflow to automate Goggles updates (#10)
This commit is contained in:
parent
c7f6700f88
commit
78e65e8a01
2 changed files with 33 additions and 1 deletions
32
.github/workflows/update_goggles.yml
vendored
Normal file
32
.github/workflows/update_goggles.yml
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
name: Update Goggles
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * 1' # This means the action will run every Monday at midnight UTC
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update-goggles:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
|
- name: Install Deno
|
||||||
|
uses: denoland/setup-deno@v2
|
||||||
|
with:
|
||||||
|
deno-version: v2.x
|
||||||
|
|
||||||
|
- name: Run generate.ts
|
||||||
|
run: deno run --allow-read --allow-write --allow-net generate.ts
|
||||||
|
|
||||||
|
- name: Commit changes
|
||||||
|
run: |
|
||||||
|
git config --global user.name 'github-actions[bot]'
|
||||||
|
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
|
||||||
|
git add fmhy.goggle
|
||||||
|
git diff --cached --quiet || git commit -m "Automated update of Goggles file"
|
||||||
|
git push
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
@ -4,7 +4,7 @@ This repository is programmed to automatically generate browser bookmarks and Br
|
||||||
|
|
||||||
Use https://search.brave.com/goggles?goggles_id=https%3A%2F%2Fraw.githubusercontent.com%2Ffmhy%2Fbookmarks%2Frefs%2Fheads%2Fmain%2Ffmhy.goggle
|
Use https://search.brave.com/goggles?goggles_id=https%3A%2F%2Fraw.githubusercontent.com%2Ffmhy%2Fbookmarks%2Frefs%2Fheads%2Fmain%2Ffmhy.goggle
|
||||||
|
|
||||||
Currently, unlike bookmarks, Goggles are not automatically updated, so you will have to manually update them. Install Deno, and then run `deno run --allow-read --allow-write --allow-net generate.ts`.
|
The goggles are automatically updated weekly through Github Actions with the new changes from FMHY.
|
||||||
|
|
||||||
## Bookmarks
|
## Bookmarks
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue