- changed token value to use , so as to be both more descriptive of exactly what it is used for, and also leave room for future uses of the same token for different events (for example triggering a test workflow on pushes or merges) - changed repository reference to use context instead of hard coded value, to allow workflows to work for users who fork
19 lines
580 B
YAML
19 lines
580 B
YAML
name: Trigger docker build
|
|
on:
|
|
release:
|
|
types:
|
|
- released
|
|
- prereleased
|
|
|
|
jobs:
|
|
trigger:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: 🚀 Repository Dispatch
|
|
uses: peter-evans/repository-dispatch@v1
|
|
with:
|
|
token: ${{ secrets.TRIGGER_DOCKER_RELEASE_TOKEN }}
|
|
repository: ${{ github.repository_owner }}/docker
|
|
event-type: octoprint-release
|
|
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "event-name": "${{ github.event_name }}", "event-type": "${{ github.event.action }}"}'
|