Create pinboard.yml
change
commit 145ec84b0774f30dc09361be22032588f9b62e72
author Alpha Chen <alpha@kejadlen.dev>
date
parent 4836ae60
diff --git a/.github/workflows/pinboard.yml b/.github/workflows/pinboard.yml
new file mode 100644
index 0000000..92c3b51
--- /dev/null
+++ b/.github/workflows/pinboard.yml
@@ -0,0 +1,20 @@
+name: refresh-pinboard-errors
+
+on:
+  schedule:
+    - cron: "0 0 * * *"
+    
+jobs:
+  refresh-pinboard-errors:
+    runs-on: ubuntu-latest
+
+    steps:
+      - uses: ruby/setup-ruby@v1
+        with:
+          ruby-version: 3
+      - uses: actions/checkout@v2
+      - run: ruby refresh-pinboard-errors.rb
+        working-directory: ./pinboard
+        env:
+          PINBOARD_USERNAME: ${{ secrets.PINBOARD_USERNAME }}
+          PINBOARD_PASSWORD: ${{ secrets.PINBOARD_PASSWORD }}