Skip to content

Commit

Permalink
updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hvalev committed Jan 7, 2023
1 parent c5bc2a4 commit 402ce58
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/check_rawgraphs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Install libs
run: sudo apt-get update && sudo apt-get install curl jq -y
- name: Get Latest RawGraphs2.0 Release
id: rawgraphs-version
run: |
echo ::set-output name=release_tag::$(curl -sL https://api.github.com/repos/rawgraphs/rawgraphs-app/releases/latest | jq -r ".tag_name" | cut -b 2-)
echo ::set-output name=current_tag::$(<rawgraphs-version.txt)
echo "release_tag=$(curl -sL https://api.github.com/repos/rawgraphs/rawgraphs-app/releases/latest | jq -r ".tag_name" | cut -b 2-)" >> $GITHUB_OUTPUT
echo "current_tag=$(<rawgraphs-version.txt)" >> $GITHUB_OUTPUT
- name: Update RawGraphs2
if: steps.rawgraphs-version.outputs.current_tag != steps.rawgraphs-version.outputs.release_tag
env:
Expand Down

0 comments on commit 402ce58

Please sign in to comment.