From 3300a1e2beb617da4e7bddba32d62278bbe92422 Mon Sep 17 00:00:00 2001 From: Que3216 Date: Tue, 22 Oct 2024 11:34:28 +0100 Subject: [PATCH] Update test-meticulous-create-deployment.yaml --- .../test-meticulous-create-deployment.yaml | 23 +++++-------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/.github/workflows/test-meticulous-create-deployment.yaml b/.github/workflows/test-meticulous-create-deployment.yaml index 92324b1..fe14fe7 100644 --- a/.github/workflows/test-meticulous-create-deployment.yaml +++ b/.github/workflows/test-meticulous-create-deployment.yaml @@ -19,11 +19,8 @@ on: workflow_dispatch: {} permissions: - actions: write - contents: read - statuses: write - pull-requests: write - packages: read + contents: write + deployments: write jobs: create-deployment: @@ -62,22 +59,14 @@ jobs: echo "Curling https://api.github.com/repos/$OWNER/$REPO/deployments" # Create deployment - DEPLOYMENT_ID=$(curl -s -X POST \ + RESPONSE=$(curl -X POST \ -H "Authorization: Bearer $GITHUB_TOKEN" \ -H "X-GitHub-Api-Version: 2022-11-28" \ -H "Accept: application/vnd.github+json" \ https://api.github.com/repos/$OWNER/$REPO/deployments \ - -d @- <