testo
Signed-off-by: Max Schmidt <max.schmidt@outlook.de>
This commit is contained in:
parent
a321c27376
commit
5bcfd32e1a
1
.env
1
.env
@ -5,4 +5,5 @@ PAYLOAD_SECRET=supersecretkey
|
||||
MONGODB_URI=mongodb://payload:test@mongo:27017
|
||||
MONGODB_USER=payload
|
||||
MONGODB_PW=test
|
||||
TOKEN=supersecrettoken
|
||||
NAME=astroad
|
1
.github/workflows/push.yml
vendored
1
.github/workflows/push.yml
vendored
@ -29,6 +29,7 @@ jobs:
|
||||
sed -i "s/MONGODB_URI=.*/MONGODB_URI=${{ secrets.MONGODB_URI }}/" .env
|
||||
sed -i "s/MONGODB_USER=.*/MONGODB_USER=${{ secrets.MONGODB_USER }}/" .env
|
||||
sed -i "s/MONGODB_PW=.*/MONGODB_PW=${{ secrets.MONGODB_PW }}/" .env
|
||||
sed -i "s/TOKEN=.*/TOKEN=${{ secrets.TOKEN }}/" .env
|
||||
sed -i "s/NAME=.*/NAME=${{ vars.NAME }}/" .env
|
||||
cp .env ./astro/.env
|
||||
fi
|
||||
|
@ -13,6 +13,7 @@ const Posts: CollectionConfig = {
|
||||
hooks: {
|
||||
afterChange: [
|
||||
async () => {
|
||||
console.log("HALLO");
|
||||
try {
|
||||
console.log(
|
||||
await fetch(
|
||||
@ -21,8 +22,7 @@ const Posts: CollectionConfig = {
|
||||
method: "POST",
|
||||
headers: {
|
||||
Accept: "application/vnd.github.everest-preview+json",
|
||||
Authorization:
|
||||
"token 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",
|
||||
Authorization: `token ${process.env.TOKEN}`,
|
||||
},
|
||||
body: JSON.stringify({
|
||||
event_type: "payload_update",
|
||||
|
Loading…
Reference in New Issue
Block a user