mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-19 05:05:44 +08:00
Introduces a GitHub Actions workflow that triggers the NapCat-Docker docker-publish workflow when a release is published. This automates Docker image publishing upon new releases.
20 lines
552 B
YAML
20 lines
552 B
YAML
name: Trigger Docker Publish on Release
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
jobs:
|
|
shell-docker:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Trigger NapCat-Docker docker-publish workflow
|
|
env:
|
|
GH_TOKEN: ${{ secrets.NAPCAT_BUILD }}
|
|
run: |
|
|
curl -X POST \
|
|
-H "Accept: application/vnd.github+json" \
|
|
-H "Authorization: Bearer $GH_TOKEN" \
|
|
https://api.github.com/repos/NapNeko/NapCat-Docker/actions/workflows/docker-publish.yml/dispatches \
|
|
-d '{"ref":"main"}'
|