Skip to content

Commit

Permalink
Add scheduler name (#2295)
Browse files Browse the repository at this point in the history
* add schedulerName

* Update deploy.yml
  • Loading branch information
abby-cyber authored Oct 12, 2023
1 parent 0ee1c06 commit 0ef34e8
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,25 +37,25 @@ jobs:
git checkout .
git checkout gh-pages
- name: Modify versions.json
run: |
import json
new_content = {'version': '3.5.0-sc', 'title': '3.5.0-sc', 'aliases': []}
try:
with open('./versions.json', 'r') as f:
data = json.load(f)
# Remove the version from the list
data = [item for item in data if item.get('version') != new_content['version']]
# If you want to add it back to the end, uncomment the next line
# data.append(new_content)
with open('./versions.json', 'w') as outfile:
json.dump(data, outfile, indent=2)
except Exception as e:
print(f"An error occurred: {e}")
exit(1)
run: |
import json
new_content = {'version': '3.5.0-sc', 'title': '3.5.0-sc', 'aliases': []}
try:
with open('./versions.json', 'r') as f:
data = json.load(f)
# Remove the version from the list
data = [item for item in data if item.get('version') != new_content['version']]
# If you want to add it back to the end, uncomment the next line
# data.append(new_content)
with open('./versions.json', 'w') as outfile:
json.dump(data, outfile, indent=2)
except Exception as e:
print(f"An error occurred: {e}")
exit(1)
shell: python

# not public this branch; but push to web service
Expand Down

0 comments on commit 0ef34e8

Please sign in to comment.