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 | b313c5b4889836f8863cee37be77198a5aece759 (patch) | |
| tree | 42bf2f45cefcfdcb5f00e51ee0673e85ee8c35ec | |
| parent | 01e6eefc738d778566308da44cf4b9b94afdb4d0 (diff) | |
chore: migrate GitHub Actions to Forgejo
also:
- remove unused workflows
- remove GitHub issue templates
Former-commit-id: 0640b427588ba5452be4e253292ec02e1b887ff6
| -rw-r--r-- | .forgejo/workflows/extract-data.yml (renamed from .github/workflows/extract-data.yml) | 2 | ||||
| -rw-r--r-- | .forgejo/workflows/fetch-linkding-rss.yml (renamed from .github/workflows/fetch-linkding-rss.yml) | 20 | ||||
| -rw-r--r-- | .forgejo/workflows/fetch-webmentions.yml (renamed from .github/workflows/fetch-webmentions.yml) | 2 | ||||
| -rw-r--r-- | .github/ISSUE_TEMPLATE/投稿模板.md | 14 | ||||
| -rw-r--r-- | .github/workflows/build-unocss.yml | 35 |
5 files changed, 12 insertions, 61 deletions
diff --git a/.github/workflows/extract-data.yml b/.forgejo/workflows/extract-data.yml index 968ab16c..6f40be55 100644 --- a/.github/workflows/extract-data.yml +++ b/.forgejo/workflows/extract-data.yml @@ -17,7 +17,7 @@ concurrency: jobs: extract-data: name: Extract Data from Content - runs-on: ubuntu-latest + runs-on: docker steps: - name: Checkout repository uses: actions/checkout@v4 diff --git a/.github/workflows/fetch-linkding-rss.yml b/.forgejo/workflows/fetch-linkding-rss.yml index bdcdffb4..5442866a 100644 --- a/.github/workflows/fetch-linkding-rss.yml +++ b/.forgejo/workflows/fetch-linkding-rss.yml @@ -8,40 +8,40 @@ on: jobs: fetch-rss: - runs-on: ubuntu-latest - + runs-on: docker + 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" @@ -49,4 +49,4 @@ jobs: 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 + fi diff --git a/.github/workflows/fetch-webmentions.yml b/.forgejo/workflows/fetch-webmentions.yml index d78096dc..96057917 100644 --- a/.github/workflows/fetch-webmentions.yml +++ b/.forgejo/workflows/fetch-webmentions.yml @@ -7,7 +7,7 @@ on: jobs: fetch: - runs-on: ubuntu-latest + runs-on: docker steps: - uses: actions/checkout@v4 diff --git a/.github/ISSUE_TEMPLATE/投稿模板.md b/.github/ISSUE_TEMPLATE/投稿模板.md deleted file mode 100644 index c8a3d2a2..00000000 --- a/.github/ISSUE_TEMPLATE/投稿模板.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -name: 投稿模板 -about: 向稻草人周刊投稿 -title: "[投稿] " -labels: 投稿 -assignees: BigCoke233 - ---- - -## 原文链接 - -## 投稿栏目 - -## 投稿理由 diff --git a/.github/workflows/build-unocss.yml b/.github/workflows/build-unocss.yml deleted file mode 100644 index b6768411..00000000 --- a/.github/workflows/build-unocss.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Build UnoCSS - -on: - push: - -jobs: - build-uno: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - - uses: pnpm/action-setup@v4 - with: - version: 9 - - - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: pnpm - - - name: Install deps - run: pnpm install --frozen-lockfile - - - name: Build UnoCSS - run: pnpm run build:uno:prod - - - name: Commit if changed - run: | - git config user.name "github-actions[bot]" - git config user.email "41898282+github-actions[bot]@users.noreply.github.com" - - git add . - git commit -m "chore(unocss): rebuild styles" || exit 0 - git push |
