Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
Kristoffer Dalby 2024-08-12 09:26:23 +02:00
parent 52cce46cd8
commit 53a08e5ab6
No known key found for this signature in database

View File

@ -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