Skip to content

Commit

Permalink
tweak action
Browse files Browse the repository at this point in the history
  • Loading branch information
jgstew committed May 4, 2023
1 parent 62c07b4 commit c1f74e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tag_and_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
# what if no other tests?
- name: Wait for tests to succeed
if: steps.tagged.outputs.tagged == 1
uses: lewagon/wait-on-check-action@v0.2
uses: lewagon/wait-on-check-action@v1.3.1
with:
ref: master
running-workflow-name: "Tag and Release"
Expand Down Expand Up @@ -66,6 +66,6 @@ jobs:
${{ steps.getwheelfile.outputs.wheelfile }}
- name: Publish distribution to PyPI
if: steps.tagged.outputs.tagged == 1
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
9 changes: 4 additions & 5 deletions examples/import_bes_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@ def main():
bes_conn = besapi.besapi.get_bes_conn_using_config_file()
bes_conn.login()

with open(BES_FILE_PATH) as f:
content = f.read()
# https://developer.bigfix.com/rest-api/api/import.html
result = bes_conn.post(f"import/{SITE_PATH}", content)
print(result)
# requires besapi 3.1.6
result = bes_conn.import_bes_to_site(BES_FILE_PATH, SITE_PATH)

print(result)


if __name__ == "__main__":
Expand Down

0 comments on commit c1f74e0

Please sign in to comment.