Skip to content

Commit

Permalink
Re-use the parameter "ref" for other purposes and removed
Browse files Browse the repository at this point in the history
parameter "repository"
  • Loading branch information
nanory committed Dec 12, 2023
1 parent ea90cdb commit aa98c0b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build_pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@ name: build
on:
workflow_call:
inputs:
repository:
type: string
default: ${{ github.repository }}
ref:
type: string
default: ${{ github.sha }}
default: main
build_container:
type: string
default: ghcr.io/gardenlinux/package-build
Expand Down Expand Up @@ -59,11 +56,12 @@ jobs:
- uses: actions/checkout@v4
with:
repository: gardenlinux/package-build
ref: ${{ inputs.ref }}
- run: mkdir input output
- uses: actions/checkout@v4
with:
repository: ${{ inputs.repository }}
ref: ${{ inputs.ref }}
repository: ${{ github.repository }}
ref: ${{ github.sha }}
path: input
fetch-tags: true
fetch-depth: 0
Expand Down Expand Up @@ -125,6 +123,7 @@ jobs:
- uses: actions/checkout@v4
with:
repository: gardenlinux/package-build
ref: ${{ inputs.ref }}
- name: setup binfmt
if: ${{ matrix.arch == 'arm64v8' }}
run: sudo podman run --privileged ghcr.io/gardenlinux/binfmt_container
Expand Down Expand Up @@ -190,6 +189,7 @@ jobs:
- uses: actions/checkout@v4
with:
repository: gardenlinux/package-build
ref: ${{ inputs.ref }}
- name: check if ${{ env.pkg }} already released
id: check
run: |
Expand Down

0 comments on commit aa98c0b

Please sign in to comment.