Skip to content

Commit

Permalink
Fix java-version format and exit status code of Postman script
Browse files Browse the repository at this point in the history
  • Loading branch information
gricher-crto authored Oct 29, 2024
1 parent 1b5f23d commit 38049b4
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/generate_java_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up JDK 1.8
uses: actions/setup-java@v4
with:
java-version: 1.8
java-version: 8
distribution: temurin

- name: Set up Python
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate_php_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Set up JDK 1.8
uses: actions/setup-java@v4
with:
java-version: 1.8
java-version: 8
distribution: temurin

- name: Set up Python
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate_python_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Set up JDK 1.8
uses: actions/setup-java@v4
with:
java-version: 1.8
java-version: 8
distribution: temurin

- name: Set up Python
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Set up JDK 1.8
uses: actions/setup-java@v4
with:
java-version: 1.8
java-version: 8
distribution: temurin

- name: Set up Python
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Set up JDK 1.8
uses: actions/setup-java@v4
with:
java-version: 1.8
java-version: 8
distribution: temurin

- name: Set up Python
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Set up JDK 1.8
uses: actions/setup-java@v4
with:
java-version: 1.8
java-version: 8
distribution: temurin

- name: Set up Python
Expand Down
10 changes: 5 additions & 5 deletions scripts/push_postman_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,22 +128,22 @@ def main():
else:
uid_to_update = collection_id_to_update_list[0]
if create_flag == False:
update_collection(uid_to_update,collection_name_to_update,file)
update_collection(uid_to_update, collection_name_to_update, file)
else:
create_collection(collection_name_to_update, file)

except OSError as err:
print("File manipulation error:", err)
sys.exit(0)
sys.exit(1)
except requests.exceptions.ConnectionError as err:
print("Requests failure: e.g. DNS failure, refused connection", err)
sys.exit(0)
sys.exit(1)
except requests.exceptions.HTTPError as err:
print("Invalid HTTP response", err)
sys.exit(0)
sys.exit(1)
except Exception as err:
print("Generic error or a network error:", err)
sys.exit(0)
sys.exit(1)



Expand Down

0 comments on commit 38049b4

Please sign in to comment.