Skip to content

Commit

Permalink
reverted the change
Browse files Browse the repository at this point in the history
  • Loading branch information
Fixstars-momoko committed Jul 24, 2024
1 parent 131d79b commit 422a708
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/develop-Linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,14 @@ jobs:
- name: Get latest release tag
id: get_latest_tag
run: |
releases=$(curl -s https://api.github.com/repos/${{ github.repository }}/releases)
latest_release=$(echo "$releases" | jq '[.[] | select(.prerelease == false)] | sort_by(.created_at) | last')
latest_tag=$(echo "$latest_release" | jq -r .tag_name)
latest_tag=$(curl -s https://api.github.com/repos/${{ github.repository }}/releases/latest | jq -r .tag_name)
echo "LATEST_RELEASED_SDK=${latest_tag}" >> $GITHUB_OUTPUT
- name: Set environment variables
id: set-vars
run: |
echo "LATEST_RELEASED_SDK=${{ env.LATEST_RELEASED_SDK}}" >> $GITHUB_OUTPUT
echo "LATEST_OPENCV_VERSION=${{ env.LATEST_OPENCV_VERSION}}" >> $GITHUB_OUTPUT
echo "LATEST_OPENCV_BIN_PATH=${{ env.LATEST_OPENCV_BIN_PATH}}" >> $GITHUB_OUTPUT
generate_config:
runs-on: ubuntu-22.04

Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/develop-Windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ jobs:
- name: Get latest release tag
id: get_latest_tag
run: |
$releases = Invoke-RestMethod -Uri "https://api.github.com/repos/${{ github.repository }}/releases"
$latestRelease = $releases | Where-Object { $_.prerelease -eq $false } | Sort-Object -Property created_at -Descending | Select-Object -First 1
$latestTag = $latestRelease.tag_name
$releases = Invoke-RestMethod -Uri "https://api.github.com/repos/${{ github.repository }}/releases/latest"
$latestTag = $releases.tag_name
echo "LATEST_RELEASED_SDK=$latestTag" >> $env:GITHUB_OUTPUT
- name: Set environment variables
Expand Down

0 comments on commit 422a708

Please sign in to comment.