diff --git a/.github/workflows/release.yml b/.github/workflows/_release.yml similarity index 62% rename from .github/workflows/release.yml rename to .github/workflows/_release.yml index 0c41293b..7a00a22f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/_release.yml @@ -15,10 +15,16 @@ # name: Run release on: - push: - branches: - - "release/v*.*" - - "!release/v*.*.*" + workflow_call: + inputs: + release_branch_name: + type: string + description: "The release branch name. e.g release/v1.7" + required: true + release_tag: + type: string + description: "The release tag" + required: true jobs: dump-contexts-to-log: @@ -31,79 +37,21 @@ jobs: uses: ./.github/workflows/_detect-ci-container.yml secrets: inherit - semver-auto: - runs-on: ubuntu-latest - outputs: - RELEASE_BRANCH_NAME_SUFFIX: ${{ steps.set_context.outputs.RELEASE_BRANCH_NAME_SUFFIX }} - RELEASE_TAG: ${{ steps.upgrade_semver.outputs.RELEASE_TAG }} - RELEASE: ${{ steps.upgrade_semver.outputs.RELEASE }} - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Set Github context - id: set_context - run: | - RELEASE_BRANCH_NAME_SUFFIX=`echo '${{ github.ref }}' | sed -e 's:^refs/heads/release/::'` - BRANCH_LATEST_TAG=`git tag | grep ${RELEASE_BRANCH_NAME_SUFFIX} | tail -n 1` - RELEASE_KIND=`echo "${{ github.event.head_commit.message }}" | sed -n -E 's:^\[(major|minor|patch)\].*:\1:p'` - - echo "RELEASE_BRANCH_NAME_SUFFIX=${RELEASE_BRANCH_NAME_SUFFIX}" >> $GITHUB_OUTPUT # e.g) vx.x - echo "BRANCH_LATEST_TAG=${BRANCH_LATEST_TAG}" >> $GITHUB_OUTPUT # e.g) vx.x.x or empty - echo "RELEASE_KIND=${RELEASE_KIND}" >> $GITHUB_OUTPUT # e.g) major or minor or patch or empty - - echo "${RELEASE_BRANCH_NAME_SUFFIX}" - echo "${BRANCH_LATEST_TAG}" - echo "${RELEASE_KIND}" - - - name: Upgrade semver - id: upgrade_semver - if: ${{ steps.set_context.outputs.RELEASE_KIND != '' }} - env: - RELEASE_BRANCH_NAME_SUFFIX: ${{ steps.set_context.outputs.RELEASE_BRANCH_NAME_SUFFIX }} - BRANCH_LATEST_TAG: ${{ steps.set_context.outputs.BRANCH_LATEST_TAG }} - RELEASE_KIND: ${{ steps.set_context.outputs.RELEASE_KIND }} - run: | - if [ -z "${BRANCH_LATEST_TAG}" ]; then - case ${RELEASE_KIND} in - major | minor) RELEASE_TAG="${RELEASE_BRANCH_NAME_SUFFIX}.0"; ;; - *) echo "not supported semver kind"; exit 1; ;; - esac - else - IFS=. read -r version minor patch <<< "${BRANCH_LATEST_TAG}" - - case ${RELEASE_KIND} in - patch) RELEASE_TAG="$version.$minor.$((patch+1))"; ;; - *) echo "not supported semver kind"; exit 1; ;; - esac - fi - - if [ `git tag | grep "${RELEASE_TAG}"` ] || [ `cat versions/VALD_VERSION` = "${RELEASE_TAG}" ]; then - echo "release already exists: ${RELEASE_TAG}" - exit 1 - fi - - echo "RELEASE=true" >> $GITHUB_OUTPUT - echo "RELEASE_TAG=$RELEASE_TAG" >> $GITHUB_OUTPUT # e.g) vx.x.x - - echo "${RELEASE_TAG}" - release: needs: + - dump-contexts-to-log - detect-ci-container - - semver-auto runs-on: ubuntu-latest - if: ${{ needs.semver-auto.outputs.RELEASE == 'true' }} container: image: ghcr.io/vdaas/vald/vald-ci-container:${{ needs.detect-ci-container.outputs.TAG_NAME }} env: - RELEASE_BRANCH_NAME: release/${{ needs.semver-auto.outputs.RELEASE_BRANCH_NAME_SUFFIX }} - RELEASE_TAG: ${{ needs.semver-auto.outputs.RELEASE_TAG }} + RELEASE_BRANCH_NAME: ${{ inputs.release_branch_name }} + RELEASE_TAG: ${{ inputs.release_tag }} steps: - uses: actions/checkout@v3 with: fetch-depth: 0 + token: ${{ secrets.DISPATCH_TOKEN }} - name: Set Git config run: | diff --git a/.github/workflows/release-major-minor.yaml b/.github/workflows/release-major-minor.yaml new file mode 100644 index 00000000..1c188727 --- /dev/null +++ b/.github/workflows/release-major-minor.yaml @@ -0,0 +1,107 @@ +# +# Copyright (C) 2019-2023 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 +# +# 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. +# +name: "Run [major/minor] Release" +on: + push: + branches: + - "main" +env: + BACKPORT_LABEL_PREFIX: "actions/backport/" + +jobs: + dump-contexts-to-log: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/dump-context + + semver-auto: + runs-on: ubuntu-latest + needs: [dump-contexts-to-log] + outputs: + RELEASE_BRANCH_NAME: ${{ steps.set_context.outputs.RELEASE_BRANCH_NAME }} + RELEASE: ${{ steps.upgrade_semver.outputs.RELEASE }} + RELEASE_TAG: ${{ steps.upgrade_semver.outputs.RELEASE_TAG }} + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + token: ${{ secrets.DISPATCH_TOKEN }} + + - name: Set Git config + run: | + git config --global --add safe.directory ${GITHUB_WORKSPACE} + + - name: Set context + id: set_context + run: | + LATEST_TAG=`git tag --sort=v:refname | tail -n 1` + UNSUPPORTED_VERSION=`git tag --sort=v:refname | sed -E 's/^v([0-9]+\.[0-9]+).*$/v\1/' | uniq | tail -n 2 | head -n 1` + RELEASE_KIND=`echo "${{ github.event.head_cmmit.message }}" | sed -n -E 's:^\[(major|minor)\].*:\1:p'` + + echo "LATEST_TAG=${LATEST_TAG}" >> $GITHUB_OUTPUT # e.g) v1.7.6 + echo "RELEASE_KIND=${RELEASE_KIND}" >> $GITHUB_OUTPUT # e.g) major or minor + echo "UNSUPPORTED_VERSION=${UNSUPPORTED_VERSION}" >> $GITHUB_OUTPUT # e.g) v1.6 + + echo "LATEST_TAG=${LATEST_TAG}" + echo "RELEASE_KIND=${RELEASE_KIND}" + echo "UNSUPPORTED_VERSION=${UNSUPPORTED_VERSION}" + + - name: Upgrade semver + id: upgrade_semver + if: ${{ steps.set_context.outputs.RELEASE_KIND != '' }} + env: + LATEST_TAG: ${{ steps.set_context.outputs.LATEST_TAG }} + RELEASE_KIND: ${{ steps.set_context.outputs.RELEASE_KIND }} + run: | + IFS=. read -r version minor patch <<< `echo "${LATEST_TAG}" | sed -e 's:^v::'` + + case ${RELEASE_KIND} in + major) RELEASE_TAG="v$((version+1)).0.0"; RELEASE_BRANCH_NAME="release/v$((version+1)).0"; ;; + minor) RELEASE_TAG="v$version.$((minor+1)).0"; RELEASE_BRANCH_NAME="release/v$version.$((minor+1))"; ;; + *) echo "no need to update"; exit 0; ;; + esac + + echo "RELEASE_TAG=${RELEASE_TAG}" >> $GITHUB_OUTPUT + echo "RELEASE_BRANCH_NAME=${RELEASE_BRANCH_NAME}" >> $GITHUB_OUTPUT + + echo "RELEASE_TAG=${RELEASE_TAG}" + echo "RELEASE_BRANCH_NAME=${RELEASE_BRANCH_NAME}" + + - name: Setup branch + id: setup_branch + if: ${{ steps.upgrade_semver.outputs.RELEASE_TAG != '' }} + env: + RELEASE_TAG: ${{ steps.upgrade_semver.outputs.RELEASE_TAG }} + RELEASE_BRANCH_NAME: ${{ steps.upgrade_semver.outputs.RELEASE_BRANCH_NAME }} + run: | + git checkout -b ${RELEASE_BRANCH_NAME} && git push origin ${RELEASE_BRANCH_NAME} + gh label create "${BACKPORT_LABEL_PREFIX}${RELEASE_BRANCH_NAME}" # e.g) actions/backport/release/v1.8 + + echo "RELEASE=true" >> ${GITHUB_OUTPUT} + echo "RELEASE_TAG=${RELEASE_TAG}" + echo "RELEASE_BRANCH_NAME=${RELEASE_BRANCH_NAME}" + echo "LABEL_NAME=${BACKPORT_LABEL_PREFIX}${RELEASE_BRANCH_NAME}" + + release: + if: ${{ needs.semver-auto.outputs.RELEASE == 'true' }} + needs: + - semver-auto + uses: ./.github/workflows/_release.yml + with: + release_branch_name: ${{ needs.semver-auto.outputs.RELEASE_BRANCH_NAME }} + release_tag: ${{ needs.semver-auto.outputs.RELEASE_TAG }} + secrets: inherit diff --git a/.github/workflows/release-patch.yml b/.github/workflows/release-patch.yml new file mode 100644 index 00000000..4a822327 --- /dev/null +++ b/.github/workflows/release-patch.yml @@ -0,0 +1,83 @@ +# +# Copyright (C) 2019-2023 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 +# +# 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. +# +name: "Run patch release" +on: + push: + branches: + - "release/v*.*" + - "!release/v*.*.*" + +jobs: + dump-contexts-to-log: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/dump-context + + semver-auto: + runs-on: ubuntu-latest + outputs: + RELEASE_BRANCH_NAME_SUFFIX: ${{ steps.set_context.outputs.RELEASE_BRANCH_NAME_SUFFIX }} + RELEASE_TAG: ${{ steps.upgrade_semver.outputs.RELEASE_TAG }} + RELEASE: ${{ steps.upgrade_semver.outputs.RELEASE }} + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Set context + id: set_context + run: | + RELEASE_BRANCH_NAME_SUFFIX=`echo '${{ github.ref }}' | sed -e 's:^refs/heads/release/::'` + BRANCH_LATEST_TAG=`git tag | grep ${RELEASE_BRANCH_NAME_SUFFIX} | tail -n 1` + RELEASE_KIND=`echo "${{ github.event.head_commit.message }}" | sed -n -E 's:^\[(patch)\].*:\1:p'` + + echo "RELEASE_BRANCH_NAME_SUFFIX=${RELEASE_BRANCH_NAME_SUFFIX}" >> $GITHUB_OUTPUT # e.g) vx.x + echo "BRANCH_LATEST_TAG=${BRANCH_LATEST_TAG}" >> $GITHUB_OUTPUT # e.g) vx.x.x or empty + echo "RELEASE_KIND=${RELEASE_KIND}" >> $GITHUB_OUTPUT # e.g) major or minor or patch or empty + + echo "RELEASE_BRANCH_NAME_SUFFIX=${RELEASE_BRANCH_NAME_SUFFIX}" + echo "BRANCH_LATEST_TAG=${BRANCH_LATEST_TAG}" + echo "RELEASE_KIND=${RELEASE_KIND}" + + - name: Upgrade semver + id: upgrade_semver + if: ${{ steps.set_context.outputs.RELEASE_KIND != '' }} + env: + BRANCH_LATEST_TAG: ${{ steps.set_context.outputs.BRANCH_LATEST_TAG }} + RELEASE_KIND: ${{ steps.set_context.outputs.RELEASE_KIND }} + run: | + IFS=. read -r version minor patch <<< "${BRANCH_LATEST_TAG}" # version=v1, minor=7, patch=7 + + case ${RELEASE_KIND} in + patch) RELEASE_TAG="$version.$minor.$((patch+1))"; ;; + *) echo "not supported semver kind"; exit 1; ;; + esac + + echo "RELEASE=true" >> $GITHUB_OUTPUT + echo "RELEASE_TAG=$RELEASE_TAG" >> $GITHUB_OUTPUT # e.g) vx.x.x + + echo "RELEASE_TAG=${RELEASE_TAG}" + + release: + if: ${{ needs.semver-auto.outputs.RELEASE == 'true' }} + needs: + - semver-auto + uses: ./.github/workflows/_release.yml + with: + release_branch_name: "release/${{ needs.semver-auto.outputs.RELEASE_BRANCH_NAME_SUFFIX }}" + release_tag: ${{ needs.semver-auto.outputs.RELEASE_TAG }} + secrets: inherit diff --git a/act/merge-event.json b/act/merge-event.json new file mode 100644 index 00000000..ad0fdfab --- /dev/null +++ b/act/merge-event.json @@ -0,0 +1,603 @@ +{ + "token": "***", + "job": "dump-contexts-to-log", + "ref": "main", + "sha": "523058db7e4a475d6b2ac6b96550ef1d87e4abbb", + "repository": "vdaas/vald-ci-labs", + "repository_owner": "vdaas", + "repository_owner_id": "45956367", + "repositoryUrl": "git://github.com/vdaas/vald-ci-labs.git", + "run_id": "6168372210", + "run_number": "43", + "retention_days": "90", + "run_attempt": "1", + "artifact_cache_size_limit": "10", + "repository_visibility": "private", + "repo-self-hosted-runners-disabled": false, + "enterprise-managed-business-id": "", + "repository_id": "239917734", + "actor_id": "25459661", + "actor": "hlts2", + "triggering_actor": "hlts2", + "workflow": "Run backport PR creation", + "head_ref": "bugfix/lb/handler-logic", + "base_ref": "main", + "event_name": "pull_request", + "event": { + "action": "closed", + "number": 73, + "organization": { + "avatar_url": "https://avatars.githubusercontent.com/u/45956367?v=4", + "description": "Everything becomes Vector", + "events_url": "https://api.github.com/orgs/vdaas/events", + "hooks_url": "https://api.github.com/orgs/vdaas/hooks", + "id": 45956367, + "issues_url": "https://api.github.com/orgs/vdaas/issues", + "login": "vdaas", + "members_url": "https://api.github.com/orgs/vdaas/members{/member}", + "node_id": "MDEyOk9yZ2FuaXphdGlvbjQ1OTU2MzY3", + "public_members_url": "https://api.github.com/orgs/vdaas/public_members{/member}", + "repos_url": "https://api.github.com/orgs/vdaas/repos", + "url": "https://api.github.com/orgs/vdaas" + }, + "pull_request": { + "_links": { + "comments": { + "href": "https://api.github.com/repos/vdaas/vald-ci-labs/issues/73/comments" + }, + "commits": { + "href": "https://api.github.com/repos/vdaas/vald-ci-labs/pulls/73/commits" + }, + "html": { "href": "https://github.com/vdaas/vald-ci-labs/pull/73" }, + "issue": { + "href": "https://api.github.com/repos/vdaas/vald-ci-labs/issues/73" + }, + "review_comment": { + "href": "https://api.github.com/repos/vdaas/vald-ci-labs/pulls/comments{/number}" + }, + "review_comments": { + "href": "https://api.github.com/repos/vdaas/vald-ci-labs/pulls/73/comments" + }, + "self": { + "href": "https://api.github.com/repos/vdaas/vald-ci-labs/pulls/73" + }, + "statuses": { + "href": "https://api.github.com/repos/vdaas/vald-ci-labs/statuses/228564dff4cea3c8be5e937d1a10c670804fbbd4" + } + }, + "active_lock_reason": null, + "additions": 1, + "assignee": null, + "assignees": [], + "author_association": "CONTRIBUTOR", + "auto_merge": null, + "base": { + "label": "vdaas:main", + "ref": "main", + "repo": { + "allow_auto_merge": false, + "allow_forking": false, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "allow_squash_merge": true, + "allow_update_branch": false, + "archive_url": "https://api.github.com/repos/vdaas/vald-ci-labs/{archive_format}{/ref}", + "archived": false, + "assignees_url": "https://api.github.com/repos/vdaas/vald-ci-labs/assignees{/user}", + "blobs_url": "https://api.github.com/repos/vdaas/vald-ci-labs/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/vdaas/vald-ci-labs/branches{/branch}", + "clone_url": "https://github.com/vdaas/vald-ci-labs.git", + "collaborators_url": "https://api.github.com/repos/vdaas/vald-ci-labs/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/vdaas/vald-ci-labs/comments{/number}", + "commits_url": "https://api.github.com/repos/vdaas/vald-ci-labs/commits{/sha}", + "compare_url": "https://api.github.com/repos/vdaas/vald-ci-labs/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/vdaas/vald-ci-labs/contents/{+path}", + "contributors_url": "https://api.github.com/repos/vdaas/vald-ci-labs/contributors", + "created_at": "2020-02-12T03:21:39Z", + "default_branch": "main", + "delete_branch_on_merge": true, + "deployments_url": "https://api.github.com/repos/vdaas/vald-ci-labs/deployments", + "description": null, + "disabled": false, + "downloads_url": "https://api.github.com/repos/vdaas/vald-ci-labs/downloads", + "events_url": "https://api.github.com/repos/vdaas/vald-ci-labs/events", + "fork": false, + "forks": 0, + "forks_count": 0, + "forks_url": "https://api.github.com/repos/vdaas/vald-ci-labs/forks", + "full_name": "vdaas/vald-ci-labs", + "git_commits_url": "https://api.github.com/repos/vdaas/vald-ci-labs/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/vdaas/vald-ci-labs/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/vdaas/vald-ci-labs/git/tags{/sha}", + "git_url": "git://github.com/vdaas/vald-ci-labs.git", + "has_discussions": false, + "has_downloads": true, + "has_issues": true, + "has_pages": false, + "has_projects": true, + "has_wiki": false, + "homepage": null, + "hooks_url": "https://api.github.com/repos/vdaas/vald-ci-labs/hooks", + "html_url": "https://github.com/vdaas/vald-ci-labs", + "id": 239917734, + "is_template": false, + "issue_comment_url": "https://api.github.com/repos/vdaas/vald-ci-labs/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/vdaas/vald-ci-labs/issues/events{/number}", + "issues_url": "https://api.github.com/repos/vdaas/vald-ci-labs/issues{/number}", + "keys_url": "https://api.github.com/repos/vdaas/vald-ci-labs/keys{/key_id}", + "labels_url": "https://api.github.com/repos/vdaas/vald-ci-labs/labels{/name}", + "language": "Go", + "languages_url": "https://api.github.com/repos/vdaas/vald-ci-labs/languages", + "license": { + "key": "apache-2.0", + "name": "Apache License 2.0", + "node_id": "MDc6TGljZW5zZTI=", + "spdx_id": "Apache-2.0", + "url": "https://api.github.com/licenses/apache-2.0" + }, + "merge_commit_message": "PR_TITLE", + "merge_commit_title": "MERGE_MESSAGE", + "merges_url": "https://api.github.com/repos/vdaas/vald-ci-labs/merges", + "milestones_url": "https://api.github.com/repos/vdaas/vald-ci-labs/milestones{/number}", + "mirror_url": null, + "name": "vald-ci-labs", + "node_id": "MDEwOlJlcG9zaXRvcnkyMzk5MTc3MzQ=", + "notifications_url": "https://api.github.com/repos/vdaas/vald-ci-labs/notifications{?since,all,participating}", + "open_issues": 0, + "open_issues_count": 0, + "owner": { + "avatar_url": "https://avatars.githubusercontent.com/u/45956367?v=4", + "events_url": "https://api.github.com/users/vdaas/events{/privacy}", + "followers_url": "https://api.github.com/users/vdaas/followers", + "following_url": "https://api.github.com/users/vdaas/following{/other_user}", + "gists_url": "https://api.github.com/users/vdaas/gists{/gist_id}", + "gravatar_id": "", + "html_url": "https://github.com/vdaas", + "id": 45956367, + "login": "vdaas", + "node_id": "MDEyOk9yZ2FuaXphdGlvbjQ1OTU2MzY3", + "organizations_url": "https://api.github.com/users/vdaas/orgs", + "received_events_url": "https://api.github.com/users/vdaas/received_events", + "repos_url": "https://api.github.com/users/vdaas/repos", + "site_admin": false, + "starred_url": "https://api.github.com/users/vdaas/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/vdaas/subscriptions", + "type": "Organization", + "url": "https://api.github.com/users/vdaas" + }, + "private": true, + "pulls_url": "https://api.github.com/repos/vdaas/vald-ci-labs/pulls{/number}", + "pushed_at": "2023-09-13T05:30:01Z", + "releases_url": "https://api.github.com/repos/vdaas/vald-ci-labs/releases{/id}", + "size": 9754, + "squash_merge_commit_message": "COMMIT_MESSAGES", + "squash_merge_commit_title": "COMMIT_OR_PR_TITLE", + "ssh_url": "git@github.com:vdaas/vald-ci-labs.git", + "stargazers_count": 0, + "stargazers_url": "https://api.github.com/repos/vdaas/vald-ci-labs/stargazers", + "statuses_url": "https://api.github.com/repos/vdaas/vald-ci-labs/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/vdaas/vald-ci-labs/subscribers", + "subscription_url": "https://api.github.com/repos/vdaas/vald-ci-labs/subscription", + "svn_url": "https://github.com/vdaas/vald-ci-labs", + "tags_url": "https://api.github.com/repos/vdaas/vald-ci-labs/tags", + "teams_url": "https://api.github.com/repos/vdaas/vald-ci-labs/teams", + "topics": [], + "trees_url": "https://api.github.com/repos/vdaas/vald-ci-labs/git/trees{/sha}", + "updated_at": "2023-09-12T12:15:16Z", + "url": "https://api.github.com/repos/vdaas/vald-ci-labs", + "use_squash_pr_title_as_default": false, + "visibility": "private", + "watchers": 0, + "watchers_count": 0, + "web_commit_signoff_required": false + }, + "sha": "61a6c343387f9919137d97d427d4382a0413f321", + "user": { + "avatar_url": "https://avatars.githubusercontent.com/u/45956367?v=4", + "events_url": "https://api.github.com/users/vdaas/events{/privacy}", + "followers_url": "https://api.github.com/users/vdaas/followers", + "following_url": "https://api.github.com/users/vdaas/following{/other_user}", + "gists_url": "https://api.github.com/users/vdaas/gists{/gist_id}", + "gravatar_id": "", + "html_url": "https://github.com/vdaas", + "id": 45956367, + "login": "vdaas", + "node_id": "MDEyOk9yZ2FuaXphdGlvbjQ1OTU2MzY3", + "organizations_url": "https://api.github.com/users/vdaas/orgs", + "received_events_url": "https://api.github.com/users/vdaas/received_events", + "repos_url": "https://api.github.com/users/vdaas/repos", + "site_admin": false, + "starred_url": "https://api.github.com/users/vdaas/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/vdaas/subscriptions", + "type": "Organization", + "url": "https://api.github.com/users/vdaas" + } + }, + "body": "\r\n\r\n### Description:\r\n\r\n\r\n\r\n\r\n### Related Issue:\r\n\r\n\r\n\r\n\r\n\r\n\r\n### Versions:\r\n\r\n\r\n\r\n- Go Version: 1.21.1\r\n- Docker Version: 20.10.8\r\n- Kubernetes Version: v1.28.1\r\n- NGT Version: 2.1.3\r\n\r\n### Checklist:\r\n\r\n\r\n\r\n\r\n- [ ] I have read the [CONTRIBUTING](https://github.com/vdaas/vald/blob/main/CONTRIBUTING.md) document and completed [our CLA agreement](https://cla-assistant.io/vdaas/vald).\r\n- [ ] I have checked open [Pull Requests](https://github.com/vdaas/vald/pulls) for the similar feature or fixes?\r\n\r\n### Special notes for your reviewer:\r\n\r\n\r\n", + "changed_files": 1, + "closed_at": "2023-09-13T05:30:01Z", + "comments": 0, + "comments_url": "https://api.github.com/repos/vdaas/vald-ci-labs/issues/73/comments", + "commits": 1, + "commits_url": "https://api.github.com/repos/vdaas/vald-ci-labs/pulls/73/commits", + "created_at": "2023-09-13T05:29:27Z", + "deletions": 0, + "diff_url": "https://github.com/vdaas/vald-ci-labs/pull/73.diff", + "draft": false, + "head": { + "label": "vdaas:bugfix/lb/handler-logic", + "ref": "bugfix/lb/handler-logic", + "repo": { + "allow_auto_merge": false, + "allow_forking": false, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "allow_squash_merge": true, + "allow_update_branch": false, + "archive_url": "https://api.github.com/repos/vdaas/vald-ci-labs/{archive_format}{/ref}", + "archived": false, + "assignees_url": "https://api.github.com/repos/vdaas/vald-ci-labs/assignees{/user}", + "blobs_url": "https://api.github.com/repos/vdaas/vald-ci-labs/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/vdaas/vald-ci-labs/branches{/branch}", + "clone_url": "https://github.com/vdaas/vald-ci-labs.git", + "collaborators_url": "https://api.github.com/repos/vdaas/vald-ci-labs/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/vdaas/vald-ci-labs/comments{/number}", + "commits_url": "https://api.github.com/repos/vdaas/vald-ci-labs/commits{/sha}", + "compare_url": "https://api.github.com/repos/vdaas/vald-ci-labs/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/vdaas/vald-ci-labs/contents/{+path}", + "contributors_url": "https://api.github.com/repos/vdaas/vald-ci-labs/contributors", + "created_at": "2020-02-12T03:21:39Z", + "default_branch": "main", + "delete_branch_on_merge": true, + "deployments_url": "https://api.github.com/repos/vdaas/vald-ci-labs/deployments", + "description": null, + "disabled": false, + "downloads_url": "https://api.github.com/repos/vdaas/vald-ci-labs/downloads", + "events_url": "https://api.github.com/repos/vdaas/vald-ci-labs/events", + "fork": false, + "forks": 0, + "forks_count": 0, + "forks_url": "https://api.github.com/repos/vdaas/vald-ci-labs/forks", + "full_name": "vdaas/vald-ci-labs", + "git_commits_url": "https://api.github.com/repos/vdaas/vald-ci-labs/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/vdaas/vald-ci-labs/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/vdaas/vald-ci-labs/git/tags{/sha}", + "git_url": "git://github.com/vdaas/vald-ci-labs.git", + "has_discussions": false, + "has_downloads": true, + "has_issues": true, + "has_pages": false, + "has_projects": true, + "has_wiki": false, + "homepage": null, + "hooks_url": "https://api.github.com/repos/vdaas/vald-ci-labs/hooks", + "html_url": "https://github.com/vdaas/vald-ci-labs", + "id": 239917734, + "is_template": false, + "issue_comment_url": "https://api.github.com/repos/vdaas/vald-ci-labs/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/vdaas/vald-ci-labs/issues/events{/number}", + "issues_url": "https://api.github.com/repos/vdaas/vald-ci-labs/issues{/number}", + "keys_url": "https://api.github.com/repos/vdaas/vald-ci-labs/keys{/key_id}", + "labels_url": "https://api.github.com/repos/vdaas/vald-ci-labs/labels{/name}", + "language": "Go", + "languages_url": "https://api.github.com/repos/vdaas/vald-ci-labs/languages", + "license": { + "key": "apache-2.0", + "name": "Apache License 2.0", + "node_id": "MDc6TGljZW5zZTI=", + "spdx_id": "Apache-2.0", + "url": "https://api.github.com/licenses/apache-2.0" + }, + "merge_commit_message": "PR_TITLE", + "merge_commit_title": "MERGE_MESSAGE", + "merges_url": "https://api.github.com/repos/vdaas/vald-ci-labs/merges", + "milestones_url": "https://api.github.com/repos/vdaas/vald-ci-labs/milestones{/number}", + "mirror_url": null, + "name": "vald-ci-labs", + "node_id": "MDEwOlJlcG9zaXRvcnkyMzk5MTc3MzQ=", + "notifications_url": "https://api.github.com/repos/vdaas/vald-ci-labs/notifications{?since,all,participating}", + "open_issues": 0, + "open_issues_count": 0, + "owner": { + "avatar_url": "https://avatars.githubusercontent.com/u/45956367?v=4", + "events_url": "https://api.github.com/users/vdaas/events{/privacy}", + "followers_url": "https://api.github.com/users/vdaas/followers", + "following_url": "https://api.github.com/users/vdaas/following{/other_user}", + "gists_url": "https://api.github.com/users/vdaas/gists{/gist_id}", + "gravatar_id": "", + "html_url": "https://github.com/vdaas", + "id": 45956367, + "login": "vdaas", + "node_id": "MDEyOk9yZ2FuaXphdGlvbjQ1OTU2MzY3", + "organizations_url": "https://api.github.com/users/vdaas/orgs", + "received_events_url": "https://api.github.com/users/vdaas/received_events", + "repos_url": "https://api.github.com/users/vdaas/repos", + "site_admin": false, + "starred_url": "https://api.github.com/users/vdaas/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/vdaas/subscriptions", + "type": "Organization", + "url": "https://api.github.com/users/vdaas" + }, + "private": true, + "pulls_url": "https://api.github.com/repos/vdaas/vald-ci-labs/pulls{/number}", + "pushed_at": "2023-09-13T05:30:01Z", + "releases_url": "https://api.github.com/repos/vdaas/vald-ci-labs/releases{/id}", + "size": 9754, + "squash_merge_commit_message": "COMMIT_MESSAGES", + "squash_merge_commit_title": "COMMIT_OR_PR_TITLE", + "ssh_url": "git@github.com:vdaas/vald-ci-labs.git", + "stargazers_count": 0, + "stargazers_url": "https://api.github.com/repos/vdaas/vald-ci-labs/stargazers", + "statuses_url": "https://api.github.com/repos/vdaas/vald-ci-labs/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/vdaas/vald-ci-labs/subscribers", + "subscription_url": "https://api.github.com/repos/vdaas/vald-ci-labs/subscription", + "svn_url": "https://github.com/vdaas/vald-ci-labs", + "tags_url": "https://api.github.com/repos/vdaas/vald-ci-labs/tags", + "teams_url": "https://api.github.com/repos/vdaas/vald-ci-labs/teams", + "topics": [], + "trees_url": "https://api.github.com/repos/vdaas/vald-ci-labs/git/trees{/sha}", + "updated_at": "2023-09-12T12:15:16Z", + "url": "https://api.github.com/repos/vdaas/vald-ci-labs", + "use_squash_pr_title_as_default": false, + "visibility": "private", + "watchers": 0, + "watchers_count": 0, + "web_commit_signoff_required": false + }, + "sha": "228564dff4cea3c8be5e937d1a10c670804fbbd4", + "user": { + "avatar_url": "https://avatars.githubusercontent.com/u/45956367?v=4", + "events_url": "https://api.github.com/users/vdaas/events{/privacy}", + "followers_url": "https://api.github.com/users/vdaas/followers", + "following_url": "https://api.github.com/users/vdaas/following{/other_user}", + "gists_url": "https://api.github.com/users/vdaas/gists{/gist_id}", + "gravatar_id": "", + "html_url": "https://github.com/vdaas", + "id": 45956367, + "login": "vdaas", + "node_id": "MDEyOk9yZ2FuaXphdGlvbjQ1OTU2MzY3", + "organizations_url": "https://api.github.com/users/vdaas/orgs", + "received_events_url": "https://api.github.com/users/vdaas/received_events", + "repos_url": "https://api.github.com/users/vdaas/repos", + "site_admin": false, + "starred_url": "https://api.github.com/users/vdaas/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/vdaas/subscriptions", + "type": "Organization", + "url": "https://api.github.com/users/vdaas" + } + }, + "html_url": "https://github.com/vdaas/vald-ci-labs/pull/73", + "id": 1513219409, + "issue_url": "https://api.github.com/repos/vdaas/vald-ci-labs/issues/73", + "labels": [ + { + "color": "5DF3C5", + "default": false, + "description": "", + "id": 5953088589, + "name": "actions/backport/v1.6", + "node_id": "LA_kwDODkzaps8AAAABYtTsTQ", + "url": "https://api.github.com/repos/vdaas/vald-ci-labs/labels/actions/backport/v1.6" + }, + { + "color": "fef2c0", + "default": false, + "description": "", + "id": 5956246594, + "name": "actions/backport/v1.7", + "node_id": "LA_kwDODkzaps8AAAABYwUcQg", + "url": "https://api.github.com/repos/vdaas/vald-ci-labs/labels/actions/backport/v1.7" + } + ], + "locked": false, + "maintainer_can_modify": false, + "merge_commit_sha": "523058db7e4a475d6b2ac6b96550ef1d87e4abbb", + "mergeable": null, + "mergeable_state": "unknown", + "merged": true, + "merged_at": "2023-09-13T05:30:01Z", + "merged_by": { + "avatar_url": "https://avatars.githubusercontent.com/u/25459661?v=4", + "events_url": "https://api.github.com/users/hlts2/events{/privacy}", + "followers_url": "https://api.github.com/users/hlts2/followers", + "following_url": "https://api.github.com/users/hlts2/following{/other_user}", + "gists_url": "https://api.github.com/users/hlts2/gists{/gist_id}", + "gravatar_id": "", + "html_url": "https://github.com/hlts2", + "id": 25459661, + "login": "hlts2", + "node_id": "MDQ6VXNlcjI1NDU5NjYx", + "organizations_url": "https://api.github.com/users/hlts2/orgs", + "received_events_url": "https://api.github.com/users/hlts2/received_events", + "repos_url": "https://api.github.com/users/hlts2/repos", + "site_admin": false, + "starred_url": "https://api.github.com/users/hlts2/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hlts2/subscriptions", + "type": "User", + "url": "https://api.github.com/users/hlts2" + }, + "milestone": null, + "node_id": "PR_kwDODkzaps5aMeVR", + "number": 73, + "patch_url": "https://github.com/vdaas/vald-ci-labs/pull/73.patch", + "rebaseable": null, + "requested_reviewers": [], + "requested_teams": [], + "review_comment_url": "https://api.github.com/repos/vdaas/vald-ci-labs/pulls/comments{/number}", + "review_comments": 0, + "review_comments_url": "https://api.github.com/repos/vdaas/vald-ci-labs/pulls/73/comments", + "state": "closed", + "statuses_url": "https://api.github.com/repos/vdaas/vald-ci-labs/statuses/228564dff4cea3c8be5e937d1a10c670804fbbd4", + "title": "Add todo comment", + "updated_at": "2023-09-13T05:30:02Z", + "url": "https://api.github.com/repos/vdaas/vald-ci-labs/pulls/73", + "user": { + "avatar_url": "https://avatars.githubusercontent.com/u/25459661?v=4", + "events_url": "https://api.github.com/users/hlts2/events{/privacy}", + "followers_url": "https://api.github.com/users/hlts2/followers", + "following_url": "https://api.github.com/users/hlts2/following{/other_user}", + "gists_url": "https://api.github.com/users/hlts2/gists{/gist_id}", + "gravatar_id": "", + "html_url": "https://github.com/hlts2", + "id": 25459661, + "login": "hlts2", + "node_id": "MDQ6VXNlcjI1NDU5NjYx", + "organizations_url": "https://api.github.com/users/hlts2/orgs", + "received_events_url": "https://api.github.com/users/hlts2/received_events", + "repos_url": "https://api.github.com/users/hlts2/repos", + "site_admin": false, + "starred_url": "https://api.github.com/users/hlts2/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hlts2/subscriptions", + "type": "User", + "url": "https://api.github.com/users/hlts2" + } + }, + "repository": { + "allow_forking": false, + "archive_url": "https://api.github.com/repos/vdaas/vald-ci-labs/{archive_format}{/ref}", + "archived": false, + "assignees_url": "https://api.github.com/repos/vdaas/vald-ci-labs/assignees{/user}", + "blobs_url": "https://api.github.com/repos/vdaas/vald-ci-labs/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/vdaas/vald-ci-labs/branches{/branch}", + "clone_url": "https://github.com/vdaas/vald-ci-labs.git", + "collaborators_url": "https://api.github.com/repos/vdaas/vald-ci-labs/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/vdaas/vald-ci-labs/comments{/number}", + "commits_url": "https://api.github.com/repos/vdaas/vald-ci-labs/commits{/sha}", + "compare_url": "https://api.github.com/repos/vdaas/vald-ci-labs/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/vdaas/vald-ci-labs/contents/{+path}", + "contributors_url": "https://api.github.com/repos/vdaas/vald-ci-labs/contributors", + "created_at": "2020-02-12T03:21:39Z", + "default_branch": "main", + "deployments_url": "https://api.github.com/repos/vdaas/vald-ci-labs/deployments", + "description": null, + "disabled": false, + "downloads_url": "https://api.github.com/repos/vdaas/vald-ci-labs/downloads", + "events_url": "https://api.github.com/repos/vdaas/vald-ci-labs/events", + "fork": false, + "forks": 0, + "forks_count": 0, + "forks_url": "https://api.github.com/repos/vdaas/vald-ci-labs/forks", + "full_name": "vdaas/vald-ci-labs", + "git_commits_url": "https://api.github.com/repos/vdaas/vald-ci-labs/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/vdaas/vald-ci-labs/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/vdaas/vald-ci-labs/git/tags{/sha}", + "git_url": "git://github.com/vdaas/vald-ci-labs.git", + "has_discussions": false, + "has_downloads": true, + "has_issues": true, + "has_pages": false, + "has_projects": true, + "has_wiki": false, + "homepage": null, + "hooks_url": "https://api.github.com/repos/vdaas/vald-ci-labs/hooks", + "html_url": "https://github.com/vdaas/vald-ci-labs", + "id": 239917734, + "is_template": false, + "issue_comment_url": "https://api.github.com/repos/vdaas/vald-ci-labs/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/vdaas/vald-ci-labs/issues/events{/number}", + "issues_url": "https://api.github.com/repos/vdaas/vald-ci-labs/issues{/number}", + "keys_url": "https://api.github.com/repos/vdaas/vald-ci-labs/keys{/key_id}", + "labels_url": "https://api.github.com/repos/vdaas/vald-ci-labs/labels{/name}", + "language": "Go", + "languages_url": "https://api.github.com/repos/vdaas/vald-ci-labs/languages", + "license": { + "key": "apache-2.0", + "name": "Apache License 2.0", + "node_id": "MDc6TGljZW5zZTI=", + "spdx_id": "Apache-2.0", + "url": "https://api.github.com/licenses/apache-2.0" + }, + "merges_url": "https://api.github.com/repos/vdaas/vald-ci-labs/merges", + "milestones_url": "https://api.github.com/repos/vdaas/vald-ci-labs/milestones{/number}", + "mirror_url": null, + "name": "vald-ci-labs", + "node_id": "MDEwOlJlcG9zaXRvcnkyMzk5MTc3MzQ=", + "notifications_url": "https://api.github.com/repos/vdaas/vald-ci-labs/notifications{?since,all,participating}", + "open_issues": 0, + "open_issues_count": 0, + "owner": { + "avatar_url": "https://avatars.githubusercontent.com/u/45956367?v=4", + "events_url": "https://api.github.com/users/vdaas/events{/privacy}", + "followers_url": "https://api.github.com/users/vdaas/followers", + "following_url": "https://api.github.com/users/vdaas/following{/other_user}", + "gists_url": "https://api.github.com/users/vdaas/gists{/gist_id}", + "gravatar_id": "", + "html_url": "https://github.com/vdaas", + "id": 45956367, + "login": "vdaas", + "node_id": "MDEyOk9yZ2FuaXphdGlvbjQ1OTU2MzY3", + "organizations_url": "https://api.github.com/users/vdaas/orgs", + "received_events_url": "https://api.github.com/users/vdaas/received_events", + "repos_url": "https://api.github.com/users/vdaas/repos", + "site_admin": false, + "starred_url": "https://api.github.com/users/vdaas/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/vdaas/subscriptions", + "type": "Organization", + "url": "https://api.github.com/users/vdaas" + }, + "private": true, + "pulls_url": "https://api.github.com/repos/vdaas/vald-ci-labs/pulls{/number}", + "pushed_at": "2023-09-13T05:30:01Z", + "releases_url": "https://api.github.com/repos/vdaas/vald-ci-labs/releases{/id}", + "size": 9754, + "ssh_url": "git@github.com:vdaas/vald-ci-labs.git", + "stargazers_count": 0, + "stargazers_url": "https://api.github.com/repos/vdaas/vald-ci-labs/stargazers", + "statuses_url": "https://api.github.com/repos/vdaas/vald-ci-labs/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/vdaas/vald-ci-labs/subscribers", + "subscription_url": "https://api.github.com/repos/vdaas/vald-ci-labs/subscription", + "svn_url": "https://github.com/vdaas/vald-ci-labs", + "tags_url": "https://api.github.com/repos/vdaas/vald-ci-labs/tags", + "teams_url": "https://api.github.com/repos/vdaas/vald-ci-labs/teams", + "topics": [], + "trees_url": "https://api.github.com/repos/vdaas/vald-ci-labs/git/trees{/sha}", + "updated_at": "2023-09-12T12:15:16Z", + "url": "https://api.github.com/repos/vdaas/vald-ci-labs", + "visibility": "private", + "watchers": 0, + "watchers_count": 0, + "web_commit_signoff_required": false + }, + "sender": { + "avatar_url": "https://avatars.githubusercontent.com/u/25459661?v=4", + "events_url": "https://api.github.com/users/hlts2/events{/privacy}", + "followers_url": "https://api.github.com/users/hlts2/followers", + "following_url": "https://api.github.com/users/hlts2/following{/other_user}", + "gists_url": "https://api.github.com/users/hlts2/gists{/gist_id}", + "gravatar_id": "", + "html_url": "https://github.com/hlts2", + "id": 25459661, + "login": "hlts2", + "node_id": "MDQ6VXNlcjI1NDU5NjYx", + "organizations_url": "https://api.github.com/users/hlts2/orgs", + "received_events_url": "https://api.github.com/users/hlts2/received_events", + "repos_url": "https://api.github.com/users/hlts2/repos", + "site_admin": false, + "starred_url": "https://api.github.com/users/hlts2/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hlts2/subscriptions", + "type": "User", + "url": "https://api.github.com/users/hlts2" + } + }, + "server_url": "https://github.com", + "api_url": "https://api.github.com", + "graphql_url": "https://api.github.com/graphql", + "ref_name": "main", + "ref_protected": false, + "ref_type": "branch", + "secret_source": "Actions", + "workflow_ref": "vdaas/vald-ci-labs/.github/workflows/pr.yaml@main", + "workflow_sha": "523058db7e4a475d6b2ac6b96550ef1d87e4abbb", + "workspace": "/home/runner/work/vald-ci-labs/vald-ci-labs", + "action": "__self", + "event_path": "/home/runner/work/_temp/_github_workflow/event.json", + "action_repository": "", + "action_ref": "", + "path": "/home/runner/work/_temp/_runner_file_commands/add_path_26f170f6-4889-4d3b-8785-0061d5739107", + "env": "/home/runner/work/_temp/_runner_file_commands/set_env_26f170f6-4889-4d3b-8785-0061d5739107", + "step_summary": "/home/runner/work/_temp/_runner_file_commands/step_summary_26f170f6-4889-4d3b-8785-0061d5739107", + "state": "/home/runner/work/_temp/_runner_file_commands/save_state_26f170f6-4889-4d3b-8785-0061d5739107", + "output": "/home/runner/work/_temp/_runner_file_commands/set_output_26f170f6-4889-4d3b-8785-0061d5739107", + "action_path": "/home/runner/work/vald-ci-labs/vald-ci-labs/./.github/actions/dump-context", + "action_status": "success" +} diff --git a/act/push-event-for-release.json b/act/push-event-for-release.json new file mode 100644 index 00000000..daa86079 --- /dev/null +++ b/act/push-event-for-release.json @@ -0,0 +1,241 @@ +{ + "token": "***", + "job": "dump-contexts-to-log", + "ref": "refs/heads/release/v1.7", + "sha": "11d6382bbe28ae65e033bb852807ab06e75e8978", + "repository": "vdaas/vald-ci-labs", + "repository_owner": "vdaas", + "repository_owner_id": "45956367", + "repositoryUrl": "git://github.com/vdaas/vald-ci-labs.git", + "run_id": "6168326973", + "run_number": "101", + "retention_days": "90", + "run_attempt": "1", + "artifact_cache_size_limit": "10", + "repository_visibility": "private", + "repo-self-hosted-runners-disabled": false, + "enterprise-managed-business-id": "", + "repository_id": "239917734", + "actor_id": "25459661", + "actor": "hlts2", + "triggering_actor": "hlts2", + "workflow": "Run release", + "head_ref": "", + "base_ref": "", + "event_name": "push", + "event": { + "after": "11d6382bbe28ae65e033bb852807ab06e75e8978", + "base_ref": null, + "before": "61a6c343387f9919137d97d427d4382a0413f321", + "commits": [ + { + "author": { + "email": "hiroto.funakoshi.hiroto@gmail.com", + "name": "Hiroto Funakoshi", + "username": "hlts2" + }, + "committer": { + "email": "noreply@github.com", + "name": "GitHub", + "username": "web-flow" + }, + "distinct": true, + "id": "11d6382bbe28ae65e033bb852807ab06e75e8978", + "message": "[minor] Release v1.7.0 (#72)", + "timestamp": "2023-09-13T14:23:19+09:00", + "tree_id": "b7ec30460e1b445d10c1183e715ba5cfcc26d727", + "url": "https://github.com/vdaas/vald-ci-labs/commit/11d6382bbe28ae65e033bb852807ab06e75e8978" + } + ], + "compare": "https://github.com/vdaas/vald-ci-labs/compare/61a6c343387f...11d6382bbe28", + "created": false, + "deleted": false, + "forced": false, + "head_commit": { + "author": { + "email": "hiroto.funakoshi.hiroto@gmail.com", + "name": "Hiroto Funakoshi", + "username": "hlts2" + }, + "committer": { + "email": "noreply@github.com", + "name": "GitHub", + "username": "web-flow" + }, + "distinct": true, + "id": "11d6382bbe28ae65e033bb852807ab06e75e8978", + "message": "[minor] Release v1.7.0 (#72)", + "timestamp": "2023-09-13T14:23:19+09:00", + "tree_id": "b7ec30460e1b445d10c1183e715ba5cfcc26d727", + "url": "https://github.com/vdaas/vald-ci-labs/commit/11d6382bbe28ae65e033bb852807ab06e75e8978" + }, + "organization": { + "avatar_url": "https://avatars.githubusercontent.com/u/45956367?v=4", + "description": "Everything becomes Vector", + "events_url": "https://api.github.com/orgs/vdaas/events", + "hooks_url": "https://api.github.com/orgs/vdaas/hooks", + "id": 45956367, + "issues_url": "https://api.github.com/orgs/vdaas/issues", + "login": "vdaas", + "members_url": "https://api.github.com/orgs/vdaas/members{/member}", + "node_id": "MDEyOk9yZ2FuaXphdGlvbjQ1OTU2MzY3", + "public_members_url": "https://api.github.com/orgs/vdaas/public_members{/member}", + "repos_url": "https://api.github.com/orgs/vdaas/repos", + "url": "https://api.github.com/orgs/vdaas" + }, + "pusher": { "email": "hiroto.funakoshi.hiroto@gmail.com", "name": "hlts2" }, + "ref": "refs/heads/release/v1.7", + "repository": { + "allow_forking": false, + "archive_url": "https://api.github.com/repos/vdaas/vald-ci-labs/{archive_format}{/ref}", + "archived": false, + "assignees_url": "https://api.github.com/repos/vdaas/vald-ci-labs/assignees{/user}", + "blobs_url": "https://api.github.com/repos/vdaas/vald-ci-labs/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/vdaas/vald-ci-labs/branches{/branch}", + "clone_url": "https://github.com/vdaas/vald-ci-labs.git", + "collaborators_url": "https://api.github.com/repos/vdaas/vald-ci-labs/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/vdaas/vald-ci-labs/comments{/number}", + "commits_url": "https://api.github.com/repos/vdaas/vald-ci-labs/commits{/sha}", + "compare_url": "https://api.github.com/repos/vdaas/vald-ci-labs/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/vdaas/vald-ci-labs/contents/{+path}", + "contributors_url": "https://api.github.com/repos/vdaas/vald-ci-labs/contributors", + "created_at": 1581477699, + "default_branch": "main", + "deployments_url": "https://api.github.com/repos/vdaas/vald-ci-labs/deployments", + "description": null, + "disabled": false, + "downloads_url": "https://api.github.com/repos/vdaas/vald-ci-labs/downloads", + "events_url": "https://api.github.com/repos/vdaas/vald-ci-labs/events", + "fork": false, + "forks": 0, + "forks_count": 0, + "forks_url": "https://api.github.com/repos/vdaas/vald-ci-labs/forks", + "full_name": "vdaas/vald-ci-labs", + "git_commits_url": "https://api.github.com/repos/vdaas/vald-ci-labs/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/vdaas/vald-ci-labs/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/vdaas/vald-ci-labs/git/tags{/sha}", + "git_url": "git://github.com/vdaas/vald-ci-labs.git", + "has_discussions": false, + "has_downloads": true, + "has_issues": true, + "has_pages": false, + "has_projects": true, + "has_wiki": true, + "homepage": null, + "hooks_url": "https://api.github.com/repos/vdaas/vald-ci-labs/hooks", + "html_url": "https://github.com/vdaas/vald-ci-labs", + "id": 239917734, + "is_template": false, + "issue_comment_url": "https://api.github.com/repos/vdaas/vald-ci-labs/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/vdaas/vald-ci-labs/issues/events{/number}", + "issues_url": "https://api.github.com/repos/vdaas/vald-ci-labs/issues{/number}", + "keys_url": "https://api.github.com/repos/vdaas/vald-ci-labs/keys{/key_id}", + "labels_url": "https://api.github.com/repos/vdaas/vald-ci-labs/labels{/name}", + "language": "Go", + "languages_url": "https://api.github.com/repos/vdaas/vald-ci-labs/languages", + "license": { + "key": "apache-2.0", + "name": "Apache License 2.0", + "node_id": "MDc6TGljZW5zZTI=", + "spdx_id": "Apache-2.0", + "url": "https://api.github.com/licenses/apache-2.0" + }, + "master_branch": "main", + "merges_url": "https://api.github.com/repos/vdaas/vald-ci-labs/merges", + "milestones_url": "https://api.github.com/repos/vdaas/vald-ci-labs/milestones{/number}", + "mirror_url": null, + "name": "vald-ci-labs", + "node_id": "MDEwOlJlcG9zaXRvcnkyMzk5MTc3MzQ=", + "notifications_url": "https://api.github.com/repos/vdaas/vald-ci-labs/notifications{?since,all,participating}", + "open_issues": 0, + "open_issues_count": 0, + "organization": "vdaas", + "owner": { + "avatar_url": "https://avatars.githubusercontent.com/u/45956367?v=4", + "email": "vald@vdaas.org", + "events_url": "https://api.github.com/users/vdaas/events{/privacy}", + "followers_url": "https://api.github.com/users/vdaas/followers", + "following_url": "https://api.github.com/users/vdaas/following{/other_user}", + "gists_url": "https://api.github.com/users/vdaas/gists{/gist_id}", + "gravatar_id": "", + "html_url": "https://github.com/vdaas", + "id": 45956367, + "login": "vdaas", + "name": "vdaas", + "node_id": "MDEyOk9yZ2FuaXphdGlvbjQ1OTU2MzY3", + "organizations_url": "https://api.github.com/users/vdaas/orgs", + "received_events_url": "https://api.github.com/users/vdaas/received_events", + "repos_url": "https://api.github.com/users/vdaas/repos", + "site_admin": false, + "starred_url": "https://api.github.com/users/vdaas/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/vdaas/subscriptions", + "type": "Organization", + "url": "https://api.github.com/users/vdaas" + }, + "private": true, + "pulls_url": "https://api.github.com/repos/vdaas/vald-ci-labs/pulls{/number}", + "pushed_at": 1694582599, + "releases_url": "https://api.github.com/repos/vdaas/vald-ci-labs/releases{/id}", + "size": 9754, + "ssh_url": "git@github.com:vdaas/vald-ci-labs.git", + "stargazers": 0, + "stargazers_count": 0, + "stargazers_url": "https://api.github.com/repos/vdaas/vald-ci-labs/stargazers", + "statuses_url": "https://api.github.com/repos/vdaas/vald-ci-labs/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/vdaas/vald-ci-labs/subscribers", + "subscription_url": "https://api.github.com/repos/vdaas/vald-ci-labs/subscription", + "svn_url": "https://github.com/vdaas/vald-ci-labs", + "tags_url": "https://api.github.com/repos/vdaas/vald-ci-labs/tags", + "teams_url": "https://api.github.com/repos/vdaas/vald-ci-labs/teams", + "topics": [], + "trees_url": "https://api.github.com/repos/vdaas/vald-ci-labs/git/trees{/sha}", + "updated_at": "2023-09-12T12:15:16Z", + "url": "https://github.com/vdaas/vald-ci-labs", + "visibility": "private", + "watchers": 0, + "watchers_count": 0, + "web_commit_signoff_required": false + }, + "sender": { + "avatar_url": "https://avatars.githubusercontent.com/u/25459661?v=4", + "events_url": "https://api.github.com/users/hlts2/events{/privacy}", + "followers_url": "https://api.github.com/users/hlts2/followers", + "following_url": "https://api.github.com/users/hlts2/following{/other_user}", + "gists_url": "https://api.github.com/users/hlts2/gists{/gist_id}", + "gravatar_id": "", + "html_url": "https://github.com/hlts2", + "id": 25459661, + "login": "hlts2", + "node_id": "MDQ6VXNlcjI1NDU5NjYx", + "organizations_url": "https://api.github.com/users/hlts2/orgs", + "received_events_url": "https://api.github.com/users/hlts2/received_events", + "repos_url": "https://api.github.com/users/hlts2/repos", + "site_admin": false, + "starred_url": "https://api.github.com/users/hlts2/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hlts2/subscriptions", + "type": "User", + "url": "https://api.github.com/users/hlts2" + } + }, + "server_url": "https://github.com", + "api_url": "https://api.github.com", + "graphql_url": "https://api.github.com/graphql", + "ref_name": "release/v1.7", + "ref_protected": false, + "ref_type": "branch", + "secret_source": "Actions", + "workflow_ref": "vdaas/vald-ci-labs/.github/workflows/release.yml@refs/heads/release/v1.7", + "workflow_sha": "11d6382bbe28ae65e033bb852807ab06e75e8978", + "workspace": "/home/runner/work/vald-ci-labs/vald-ci-labs", + "action": "__self", + "event_path": "/home/runner/work/_temp/_github_workflow/event.json", + "action_repository": "", + "action_ref": "", + "path": "/home/runner/work/_temp/_runner_file_commands/add_path_723e81aa-0df2-4bb7-ba9a-a803e0b9d3fa", + "env": "/home/runner/work/_temp/_runner_file_commands/set_env_723e81aa-0df2-4bb7-ba9a-a803e0b9d3fa", + "step_summary": "/home/runner/work/_temp/_runner_file_commands/step_summary_723e81aa-0df2-4bb7-ba9a-a803e0b9d3fa", + "state": "/home/runner/work/_temp/_runner_file_commands/save_state_723e81aa-0df2-4bb7-ba9a-a803e0b9d3fa", + "output": "/home/runner/work/_temp/_runner_file_commands/set_output_723e81aa-0df2-4bb7-ba9a-a803e0b9d3fa", + "action_path": "/home/runner/work/vald-ci-labs/vald-ci-labs/./.github/actions/dump-context", + "action_status": "success" +} diff --git a/git.sh b/git.sh index 37d6613a..88f2fc12 100644 --- a/git.sh +++ b/git.sh @@ -1,14 +1,35 @@ #!/bin/sh -var="v1.7.6" -IFS=. read -r version minor patch <