generated from autonomic-cooperative/astro-payload-template
Trigger Astro rebuilds on Payload updates. Tidy up .drone.yml
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a597cc6e97
commit
16844e4a35
@ -48,12 +48,6 @@ steps:
|
|||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
event:
|
|
||||||
exclude:
|
|
||||||
- pull_request
|
|
||||||
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
event:
|
||||||
exclude:
|
exclude:
|
||||||
- custom
|
- custom
|
||||||
|
@ -19,16 +19,12 @@ const Posts: CollectionConfig = {
|
|||||||
process.env.NODE_ENV !== "development" &&
|
process.env.NODE_ENV !== "development" &&
|
||||||
console.log(
|
console.log(
|
||||||
await fetch(
|
await fetch(
|
||||||
`https://api.github.com/repos/${process.env.REPOSITORY}/dispatches`,
|
`https://drone.autonomic.zone/api/repos/${process.env.REPOSITORY}/builds`,
|
||||||
{
|
{
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
Accept: "application/vnd.github.everest-preview+json",
|
Authorization: `Bearer ${process.env.TOKEN}`
|
||||||
Authorization: `token ${process.env.TOKEN}`,
|
}
|
||||||
},
|
|
||||||
body: JSON.stringify({
|
|
||||||
event_type: "payload_update",
|
|
||||||
}),
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user