Skip to content

Commit

Permalink
Add polling script
Browse files Browse the repository at this point in the history
  • Loading branch information
woojiahao committed Feb 15, 2025
1 parent fba7dd0 commit f6377a2
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/poll.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Poll for Git Mastery problem sets

on:
schedule:
- cron: "0 12 * * *"

jobs:
poll:
runs-on: ubuntu-latest
steps:
- name: Get current problems directory
uses: actions/checkout@v4
- name: List directories
run: |
ls
pwd
touch hello.txt
ls
git status
- name: Fetch all
uses: actions/github-script@v7
with:
github-token: ${{ secrets.ORG_PAT }}
script: |
const repos = await github.paginate(github.rest.search.repos, {
q: "topic:problem-set org:git-mastery",
})

0 comments on commit f6377a2

Please sign in to comment.