Skip to content

Commit

Permalink
Use recommended 'inputs' context in github workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Lan Luo <[email protected]>
  • Loading branch information
luolanzone committed Jan 8, 2024
1 parent d238ecd commit e175afc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docker_update_base_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,21 @@ jobs:
- name: Check-out code
uses: actions/checkout@v4
with:
repository: ${{ github.event.inputs.antrea-repository }}
ref: ${{ github.event.inputs.antrea-ref }}
repository: ${{ inputs.antrea-repository }}
ref: ${{ inputs.antrea-ref }}
show-progress: false
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker images
if: ${{ github.event.inputs.push }}
if: ${{ inputs.push }}
run: |
./hack/build-antrea-windows-all.sh --pull --push-base-images
shell: bash
- name: Build Docker images without pushing
if: ${{ !github.event.inputs.push }}
if: ${{ !inputs.push }}
run: |
./hack/build-antrea-windows-all.sh --pull
shell: bash
2 changes: 1 addition & 1 deletion .github/workflows/trivy_scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
VERSION=${{ github.event.inputs.antrea-version }}
VERSION=${{ inputs.antrea-version }}
if [ -z "$VERSION" ]; then
VERSION=$(gh api /repos/antrea-io/antrea/releases/latest --jq '.tag_name')
fi
Expand Down

0 comments on commit e175afc

Please sign in to comment.