mirror of
https://github.com/suyiiyii/SIMS.git
synced 2025-05-31 11:46:42 +08:00
* ci(docker-publish): 确保仅在push事件时提交标签更新 * refactor(github-workflows): 标准化Gitea Sync workflow名称 * feat(cors): 全局启用CORS支持 在Spring应用中通过配置CORS实现跨域请求支持,允许所有来源、方法和头。 此变更有助于解决前端应用在不同域上运行时的跨域问题。
21 lines
470 B
YAML
21 lines
470 B
YAML
name: Gitea Sync
|
|
on:
|
|
push:
|
|
branches: [ "main", "manifest" ]
|
|
workflow_dispatch:
|
|
workflow_run:
|
|
workflows: ["Docker Build and Publish"]
|
|
types:
|
|
- completed
|
|
|
|
|
|
jobs:
|
|
trigger-gitea-sync:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Trigger Gitea sync
|
|
run: |
|
|
echo "Triggering Gitea sync"
|
|
curl 'https://git.suyiiyii.top/api/v1/repos/ssyg/SIMS/mirror-sync' -X POST -H 'Authorization: token ${{ secrets.GITEATOKEN }}'
|
|
|