Skip to content

Commit

Permalink
Fix bash script error
Browse files Browse the repository at this point in the history
  • Loading branch information
thogarty committed Jan 10, 2024
1 parent f8504c3 commit 8857ede
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
API_SPEC_LINE=$(grep -i api.swaggerhub.com Makefile)
CURRENT_VERSION_NUM=$(echo $API_SPEC_LINE | cut -d / -f7)
VERSION_NUMS=($(echo "$CURRENT_VERSION_NUM" | tr . '\n'))
VERSION_NUMS[2]=$((VERSION_NUMS[2]+1))
VERSION_NUMS[1]=$((VERSION_NUMS[1]+1))
echo "api_spec_line=$API_SPEC_LINE" >> "$GITHUB_OUTPUT"
echo "cur_version=$CURRENT_VERSION_NUM" >> "$GITHUB_OUTPUT"
echo "next_version=$(echo $(IFS=. ; echo "${VERSION_NUMS[*]}"))" >> "$GITHUB_OUTPUT"
Expand All @@ -36,7 +36,7 @@ jobs:
- name: Sync
run: |
VERSION_UPDATE="SPEC_URL:=\"https://api.swaggerhub.com/apis/equinix-api/fabric/${{ steps.spec_versions.outputs.next_version }}/swagger.yaml\""
sed -i '.bak' -e "s/${{ steps.spec_versions.outputs.api_spec_line }}/$VERSION_UPDATE/" Makefile
sed "s/${{ steps.spec_versions.outputs.api_spec_line }}/$VERSION_UPDATE/" Makefile
make # pull fetch patch gen mod test
git commit -m 'sync: fetch ${{ steps.date.outputs.date }} spec and apply patches' *.yaml
git commit -m 'sync: generate client with ${{ steps.date.outputs.date }} spec' fabric api docs README.md
Expand Down

0 comments on commit 8857ede

Please sign in to comment.