diff options
| author | BigCoke233 <hi@guhub.cn> | 2026-01-28 20:43:14 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2026-01-28 20:43:14 +0800 |
| commit | 0640b427588ba5452be4e253292ec02e1b887ff6 (patch) | |
| tree | 3887d4c4cb989bb0431d9c07a5a967302b76ae69 /.github/workflows/fetch-linkding-rss.yml | |
| parent | 42afeaf395bff38c5870f121026798739240c7e2 (diff) | |
chore: migrate GitHub Actions to Forgejo
also:
- remove unused workflows
- remove GitHub issue templates
Diffstat (limited to '.github/workflows/fetch-linkding-rss.yml')
| -rw-r--r-- | .github/workflows/fetch-linkding-rss.yml | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/.github/workflows/fetch-linkding-rss.yml b/.github/workflows/fetch-linkding-rss.yml deleted file mode 100644 index bdcdffb4..00000000 --- a/.github/workflows/fetch-linkding-rss.yml +++ /dev/null @@ -1,52 +0,0 @@ -name: Fetch Linkding RSS Feed - -on: - schedule: - # Run daily at 2 AM UTC - - cron: '0 2 * * *' - workflow_dispatch: # Allow manual triggering - -jobs: - fetch-rss: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Create data directory if it doesn't exist - run: mkdir -p data - - - name: Fetch RSS feed - run: | - curl -s "https://links.eltr.ac/feeds/shared?limit=12" -o data/linkding.xml - - - name: Check if file was downloaded successfully - run: | - if [ ! -f data/linkding.xml ]; then - echo "Error: RSS feed file not downloaded" - exit 1 - fi - - # Check if file contains valid XML content - if ! grep -q "<?xml" data/linkding.xml; then - echo "Error: Downloaded file is not valid XML" - exit 1 - fi - - echo "RSS feed downloaded successfully" - echo "File size: $(wc -c < data/linkding.xml) bytes" - - - name: Commit and push changes - run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - - # Check if there are changes - if git diff --quiet HEAD -- data/linkding.xml; then - echo "No changes to commit" - else - git add data/linkding.xml - git commit -m "Update Linkding RSS feed - $(date -u '+%Y-%m-%d %H:%M:%S UTC')" - git push - fi
\ No newline at end of file |
