Skip to content

Commit

Permalink
Better inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
philrz committed Dec 28, 2023
1 parent 7633c3d commit ecb6877
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@ name: Create Zeek release
on:
workflow_dispatch:
inputs:
tag:
zeek_ref:
required: false
type: string
defaut: 'main'
build_zeek_ref:
required: false
type: string
default: 'main'
release_tag:
required: true
type: string

Expand All @@ -20,6 +28,8 @@ jobs:
steps:
- name: Checkout build-zeek
uses: actions/checkout@v3
with:
ref: ${{ inputs.build_zeek_ref }}

- name: Setup Go
uses: actions/setup-go@v3
Expand All @@ -30,7 +40,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: zeek/zeek
ref: ${{ inputs.tag }}
ref: ${{ inputs.zeek_ref }}
fetch-depth: 1
submodules: recursive
path: zeek
Expand Down Expand Up @@ -93,6 +103,8 @@ jobs:
- name: Finish packaging release
run: ./release.sh
env:
RELEASE_TAG: ${{ inputs.release_tag }}
shell: sh

- name: Upload artifact
Expand All @@ -107,5 +119,5 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: zeek-*.zip
file_glob: true
tag: ${{ github.ref }}
tag: ${{ inputs.release_tag }}
overwrite: true
2 changes: 1 addition & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,4 @@ for d in base policy site builtin-plugins; do
cp -R $zeekpath/share/zeek/$d zeek/share/zeek/
done

$zip -r zeek-taghere.$(go env GOOS)-$(go env GOARCH).zip zeek
$zip -r zeek-$RELEASE_TAG.$(go env GOOS)-$(go env GOARCH).zip zeek

0 comments on commit ecb6877

Please sign in to comment.