From 53a08e5ab6c223ee169d68fb91f770e1a0d2661f Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Mon, 12 Aug 2024 09:26:23 +0200 Subject: [PATCH] derp Signed-off-by: Kristoffer Dalby --- .github/workflows/build.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7f827b81..e27f44cb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,9 @@ concurrency: jobs: build: runs-on: ubuntu-latest - permissions: write-all + permissions: + contents: read + pull-requests: read steps: - uses: actions/checkout@v4 with: @@ -34,7 +36,7 @@ jobs: - uses: DeterminateSystems/magic-nix-cache-action@main if: steps.changed-files.outputs.files == 'true' - - uses: actions/github-script@v6 + - uses: actions/github-script@v7 id: get_pr_data with: script: | @@ -46,8 +48,11 @@ jobs: }) ).data[0]; - - name: Issue number - run: echo '${{steps.get_pr_data.outputs.result}}' + - name: Pull Request data + run: | + echo '${{ fromJson(steps.get_pr_data.outputs.result).number }}' + echo '${{ fromJson(steps.get_pr_data.outputs.result).title }}' + echo '${{steps.get_pr_data.outputs.result}}' - name: Run ko build id: build