Skip to content

Commit

Permalink
use yq action
Browse files Browse the repository at this point in the history
  • Loading branch information
jlsherrill committed Feb 5, 2024
1 parent 24204ae commit ec3ebaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
with:
prefix: release/
fallback: 1.0.0 # Optional fallback tag to use when no tag can be found

- name: Set up yq
uses: frenck/action-setup-yq@v1
- name: Get current version from file
id: getRelease
run: |
pip install yq
curl https://github.com/candlepin/candlepin/blob/main/api/candlepin-api-spec.yaml -o candlepin-api-spec.yaml
version= "`yq -r '.info.version' < candlepin-api-spec.yaml`"
major="v`echo $version | awk -F '.' '{print $1}'`"
Expand Down

0 comments on commit ec3ebaf

Please sign in to comment.