Skip to content

Commit

Permalink
chore: remove &&
Browse files Browse the repository at this point in the history
  • Loading branch information
dantetemplar committed Aug 12, 2024
1 parent e46c3d5 commit e581e51
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/listen-swagger-changes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
- name: "Check for new Swagger release 🕵️‍♂️"
id: check
run: |
python check_swagger.py &&
echo "updated=$SWAGGER_UI_UPDATED" >> "$GITHUB_OUTPUT" &&
python check_swagger.py
echo "updated=$SWAGGER_UI_UPDATED" >> "$GITHUB_OUTPUT"
echo "version=$SWAGGER_UI_VERSION" >> "$GITHUB_OUTPUT"
# It will set SWAGGER_UI_UPDATED and SWAGGER_UI_VERSION env variables
# If there is a new release, then needed files will be updated
Expand All @@ -37,12 +37,15 @@ jobs:
version: ${{ steps.check.outputs.version }}
run: |
if [ "$updated" = "true" ]; then
echo "New Swagger UI version: $version"
git config --global user.email "[email protected]"
git config --global user.name "Automated Swagger UI update"
git add 'fastapi_swagger/resources'
git add 'latest_release.txt'
git commit -m "chore: update Swagger UI to $version"
git push
else
echo "No new Swagger UI release"
fi
build:
Expand Down

0 comments on commit e581e51

Please sign in to comment.