Skip to content

Commit

Permalink
fix(gh): use correct yq option on noble
Browse files Browse the repository at this point in the history
Yq on jammy has -P for emitting YAMl from JSON but on noble a newer
verison of yq used -y for that.
  • Loading branch information
morphis committed Oct 4, 2024
1 parent 5535d69 commit 1a88174
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update-api-specs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- cron: '0 1 * * *'

jobs:
backport:
update-api-specs:
runs-on: ubuntu-24.04
steps:
- name: Check out repository
Expand All @@ -29,7 +29,7 @@ jobs:
sudo apt install -y jq yq
curl \
--unix-socket /var/snap/anbox-cloud-appliance/common/ams-unix.socket \
s/1.0/swagger.json | yq -P > ./reference/api-reference/ams-api.yaml
s/1.0/swagger.json | yq -y > ./reference/api-reference/ams-api.yaml
- name: Create PR
uses: canonical/create-pull-request@3ad9cef62791c00f1c71d4aca902f4ea6abe0302
with:
Expand Down

0 comments on commit 1a88174

Please sign in to comment.