Skip to content

Commit

Permalink
github action version check fix (#20)
Browse files Browse the repository at this point in the history
* github action version check fix

Signed-off-by: Woojoong Kim <[email protected]>

* github action version check fix

Signed-off-by: Woojoong Kim <[email protected]>

---------

Signed-off-by: Woojoong Kim <[email protected]>
  • Loading branch information
woojoong88 authored Jul 1, 2024
1 parent c9d1ab7 commit c4e6ab7
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/code-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: check version
run: make check-version
lint:
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,22 @@ jobs:
with:
fetch-depth: 0
- name: create release using REST API
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GH_ONOS_PAT }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/${{ github.repository }}/releases \
-d '{
"tag_name": "v${{ needs.version-check.outputs.target_version }}",
"target_commitish": "${{ github.event.repository.default_branch }}",
"name": "v${{ needs.version-check.outputs.target_version }}",
"draft": false,
"prerelease": false,
"generate_release_notes": true
}'
- name: create release using REST API with go prefix for api
run: |
curl -L \
-X POST \
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.7-dev
0.0.7

0 comments on commit c4e6ab7

Please sign in to comment.