mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-26 08:53:05 +00:00
remove pr number again
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
parent
610223df67
commit
8e26fcfeea
1 changed files with 16 additions and 16 deletions
32
.github/workflows/build.yml
vendored
32
.github/workflows/build.yml
vendored
|
@ -34,28 +34,28 @@ jobs:
|
||||||
- uses: DeterminateSystems/magic-nix-cache-action@main
|
- uses: DeterminateSystems/magic-nix-cache-action@main
|
||||||
if: steps.changed-files.outputs.files == 'true'
|
if: steps.changed-files.outputs.files == 'true'
|
||||||
|
|
||||||
- uses: actions/github-script@v7
|
# - uses: actions/github-script@v7
|
||||||
id: get_pr_data
|
# id: get_pr_data
|
||||||
with:
|
# with:
|
||||||
script: |
|
# script: |
|
||||||
return (
|
# return (
|
||||||
await github.rest.repos.listPullRequestsAssociatedWithCommit({
|
# await github.rest.repos.listPullRequestsAssociatedWithCommit({
|
||||||
commit_sha: context.sha,
|
# commit_sha: context.sha,
|
||||||
owner: context.repo.owner,
|
# owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
# repo: context.repo.repo,
|
||||||
})
|
# })
|
||||||
).data[0];
|
# ).data[0];
|
||||||
|
|
||||||
- name: Pull Request data
|
# - name: Pull Request data
|
||||||
run: |
|
# run: |
|
||||||
echo '${{steps.get_pr_data.outputs.result}}'
|
# echo '${{steps.get_pr_data.outputs.result}}'
|
||||||
|
|
||||||
- name: Run ko build
|
- name: Run ko build
|
||||||
id: build
|
id: build
|
||||||
if: steps.changed-files.outputs.files == 'true'
|
if: steps.changed-files.outputs.files == 'true'
|
||||||
env:
|
env:
|
||||||
KO_DOCKER_REPO: ghcr.io/${{ github.repository_owner }}/headscale
|
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 }}
|
TAG_SHA: ${{ github.sha }}
|
||||||
run: |
|
run: |
|
||||||
nix develop --command -- ko build --tags=$TAG_SHA,$TAG_PR_NAME ./cmd/headscale
|
nix develop --command -- ko build --tags=$TAG_SHA ./cmd/headscale
|
||||||
|
|
Loading…
Reference in a new issue