Skip to content

Commit

Permalink
remove pr number again
Browse files Browse the repository at this point in the history
Signed-off-by: Kristoffer Dalby <[email protected]>
  • Loading branch information
kradalby committed Aug 13, 2024
1 parent 610223d commit 8e26fcf
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,28 +34,28 @@ jobs:
- uses: DeterminateSystems/magic-nix-cache-action@main
if: steps.changed-files.outputs.files == 'true'

- uses: actions/github-script@v7
id: get_pr_data
with:
script: |
return (
await github.rest.repos.listPullRequestsAssociatedWithCommit({
commit_sha: context.sha,
owner: context.repo.owner,
repo: context.repo.repo,
})
).data[0];
# - uses: actions/github-script@v7
# id: get_pr_data
# with:
# script: |
# return (
# await github.rest.repos.listPullRequestsAssociatedWithCommit({
# commit_sha: context.sha,
# owner: context.repo.owner,
# repo: context.repo.repo,
# })
# ).data[0];

- name: Pull Request data
run: |
echo '${{steps.get_pr_data.outputs.result}}'
# - name: Pull Request data
# run: |
# echo '${{steps.get_pr_data.outputs.result}}'

- name: Run ko build
id: build
if: steps.changed-files.outputs.files == 'true'
env:
KO_DOCKER_REPO: ghcr.io/${{ github.repository_owner }}/headscale
TAG_PR_NAME: pr-${{ fromJson(steps.get_pr_data.outputs.result).number }}
# TAG_PR_NAME: pr-${{ fromJson(steps.get_pr_data.outputs.result).number }}
TAG_SHA: ${{ github.sha }}
run: |
nix develop --command -- ko build --tags=$TAG_SHA,$TAG_PR_NAME ./cmd/headscale
nix develop --command -- ko build --tags=$TAG_SHA ./cmd/headscale

0 comments on commit 8e26fcf

Please sign in to comment.