Skip to content

Commit

Permalink
fix python ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ipatka committed Oct 27, 2023
1 parent 8f25dd1 commit cc4429c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ jobs:
ref: ${{ github.event.release.tag_name }}
- name: Set release version
# Set release version in all three os, the commented run should suffice for linux and mac.
run: python3 -c "import os; tag = os.environ['GITHUB_REF'].split('/')[-1]; f = open(os.environ['GITHUB_ENV'], 'a'); f.write('RELEASE_VERSION='+tag); f.close();"
run: python -c "import os; tag = os.environ['GITHUB_REF'].split('/')[-1]; f = open(os.environ['GITHUB_ENV'], 'a'); f.write('RELEASE_VERSION='+tag); f.close();"
# run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- uses: actions/setup-node@v2
Expand All @@ -188,7 +188,7 @@ jobs:
- name: Tweak package.json
working-directory: ./
# This will update the package version to tag version. So artifacts uploaded to Github release will be named correctly.
run: python3 -c "import os; import json; p = json.load(open('package.json')); p['version'] = os.environ['RELEASE_VERSION']; json.dump(p, open('package.json', 'w'), indent=2, ensure_ascii=False);"
run: python -c "import os; import json; p = json.load(open('package.json')); p['version'] = os.environ['RELEASE_VERSION']; json.dump(p, open('package.json', 'w'), indent=2, ensure_ascii=False);"

- name: Cache toolchain
uses: actions/cache@v1
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shield3/banyan",
"version": "0.1.10",
"version": "0.1.11",
"description": "Banyan policy engine",
"main": "dist/index.js",
"scripts": {
Expand Down

0 comments on commit cc4429c

Please sign in to comment.