mirror of
https://github.com/suyiiyii/SIMS.git
synced 2025-06-02 00:16:11 +08:00
- 在docker-publish.yml中引入yq Linux二进制文件并设置权限,用于在'push'事件中自动更新部署镜像标签。 - 用git-auto-commit-action自动化提交更新到GitHub,使用机器用户凭据。- 在gitea-sync.yml中增加workflow_run事件的类型限定,仅在'Docker Build and Publish'工作流完成时触发。
21 lines
474 B
YAML
21 lines
474 B
YAML
name: gitea-sync.yml
|
|
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 }}'
|
|
|