Skip to content

[投稿] Docmost: 是一个开源的协作文档和 Wiki 应用 #14

[投稿] Docmost: 是一个开源的协作文档和 Wiki 应用

[投稿] Docmost: 是一个开源的协作文档和 Wiki 应用 #14

Workflow file for this run

name: Create RSS
on:
issues:
types: [labeled]
jobs:
create-rss:
if: github.repository == 'jaywcjlove/quick-rss' && github.event_name == 'issues' && contains(github.event.issue.labels.*.name, 'weekly')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- run: npm install
- name: Create RSS
run: node .github/scripts/create-rss.mjs
# 判断是不是仓库作者更新的 label,并且判断是否包含 weekly
if: github.event.issue.user.login == 'jaywcjlove' && contains(github.event.issue.labels.*.name, 'weekly')
env:
ISSUE_BODY: ${{ github.event.issue.body }}
ISSUE_LINK: ${{ github.event.issue.html_url }}
ISSUE_TITLE: ${{ github.event.issue.title }}
ISSUE_ID: ${{ github.event.issue.number }}
ISSUE_DATE: ${{ github.event.issue.created_at }}
ISSUE_AUTHOR: ${{ github.event.issue.user.login }}
ISSUE_AVATAR: ${{ github.event.issue.user.avatar_url }}
- name: Commit changes
if: github.event.issue.user.login == 'jaywcjlove' && contains(github.event.issue.labels.*.name, 'weekly')
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
# 获取当前分支名称
CURRENT_BRANCH=$(echo ${GITHUB_REF#refs/heads/})
git add .
git commit -m "Quick RSS Feed: updated or added"
git push origin $CURRENT_BRANCH
- name: Trigger Deploy
uses: actions/github-script@v7
with:
script: |
const res = await github.rest.repos.createDispatchEvent({
owner: 'jaywcjlove',
repo: 'quick-rss',
event_type: 'run-deploy'
});
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}