diff --git a/.github/actions/docker-build/action.yaml b/.github/actions/docker-build/action.yaml index 3857093b7d..7154f34964 100644 --- a/.github/actions/docker-build/action.yaml +++ b/.github/actions/docker-build/action.yaml @@ -64,12 +64,13 @@ runs: shell: bash id: determine_tag_name run: | + echo "GITHUB_REF $GITHUB_REF" + echo "GITHUB_EVENT_PATH $GITHUB_EVENT_PATH" + echo "GITHUB_EVENT_NAME ${{ github.event_name }}" + echo "GITHUB_EVENT_NUMBER ${{ github.event.number }}" if [[ "$GITHUB_REF" =~ ^refs/tags/.* ]]; then tag_name=`echo $GITHUB_REF | sed -e 's:^refs/tags/::'` primary_tag="${tag_name}" - elif [ "$GITHUB_REF" = "refs/heads/main" ]; then - echo "nightly" > versions/VALD_VERSION - primary_tag="nightly" elif [ "${{ github.event_name }}" = "pull_request" ]; then pr_num=`cat $GITHUB_EVENT_PATH | jq -r ".number"` echo "PR-${pr_num}" > versions/VALD_VERSION @@ -78,6 +79,9 @@ runs: pr_num=`cat $GITHUB_EVENT_PATH | jq -r ".number"` echo "PR-${pr_num}" > versions/VALD_VERSION primary_tag="pr-${pr_num}" + elif [ "$GITHUB_REF" = "refs/heads/main" ]; then + echo "nightly" > versions/VALD_VERSION + primary_tag="nightly" else primary_tag="unknown" fi diff --git a/apis/grpc/v1/payload/interface.go b/apis/grpc/v1/payload/interface.go index 0ce9770a92..f5b0f3a646 100644 --- a/apis/grpc/v1/payload/interface.go +++ b/apis/grpc/v1/payload/interface.go @@ -1,18 +1,16 @@ -// // Copyright (C) 2019-2022 vdaas.org vald team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// https://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -// package payload import proto "google.golang.org/protobuf/proto"