From 8e26fcfeea48f5808aa2e6792c9dbae84f2593ce Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Tue, 13 Aug 2024 08:24:21 +0200 Subject: [PATCH] remove pr number again Signed-off-by: Kristoffer Dalby --- .github/workflows/build.yml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c9fae63b..c9784300 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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