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:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
exclude:
|
||||
- pull_request
|
||||
|
||||
|
||||
trigger:
|
||||
event:
|
||||
exclude:
|
||||
- custom
|
||||
|
@ -19,16 +19,12 @@ const Posts: CollectionConfig = {
|
||||
process.env.NODE_ENV !== "development" &&
|
||||
console.log(
|
||||
await fetch(
|
||||
`https://api.github.com/repos/${process.env.REPOSITORY}/dispatches`,
|
||||
`https://drone.autonomic.zone/api/repos/${process.env.REPOSITORY}/builds`,
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
Accept: "application/vnd.github.everest-preview+json",
|
||||
Authorization: `token ${process.env.TOKEN}`,
|
||||
},
|
||||
body: JSON.stringify({
|
||||
event_type: "payload_update",
|
||||
}),
|
||||
Authorization: `Bearer ${process.env.TOKEN}`
|
||||
}
|
||||
}
|
||||
)
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user