2020-06-23 20:11:40 +02:00
|
|
|
# This is a basic workflow to help you get started with Actions
|
|
|
|
|
|
|
|
name: Trigger .deb build
|
|
|
|
|
|
|
|
# Controls when the action will run. Triggers the workflow on push or pull request
|
|
|
|
# events but only for the master branch
|
2020-06-23 20:58:40 +02:00
|
|
|
on:
|
|
|
|
push:
|
2020-06-23 21:12:44 +02:00
|
|
|
tags:
|
|
|
|
- 'v*'
|
2020-06-23 20:11:40 +02:00
|
|
|
|
|
|
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
|
|
jobs:
|
2020-06-23 20:14:19 +02:00
|
|
|
trigger_deb_build:
|
2020-06-23 20:11:40 +02:00
|
|
|
name: Trigger .deb build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Make curl request
|
2020-06-23 20:14:19 +02:00
|
|
|
run: |
|
|
|
|
curl -X POST "${{ secrets.DEB_REPOSITORY }}/dispatches" \
|
|
|
|
-u "${{ secrets.DEB_ACCESS_TOKEN }}" \
|
|
|
|
-H "Accept: application/vnd.github.everest-preview+json" \
|
|
|
|
-H "Content-Type: application/json" \
|
|
|
|
--data '{"event_type": "build"}'
|
2020-06-23 20:11:40 +02:00
|
|
|
|