Skip to content

Commit cc4429c

Browse files
committed
fix python ci
1 parent 8f25dd1 commit cc4429c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/publish.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ jobs:
175175
ref: ${{ github.event.release.tag_name }}
176176
- name: Set release version
177177
# Set release version in all three os, the commented run should suffice for linux and mac.
178-
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();"
178+
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();"
179179
# run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
180180

181181
- uses: actions/setup-node@v2
@@ -188,7 +188,7 @@ jobs:
188188
- name: Tweak package.json
189189
working-directory: ./
190190
# This will update the package version to tag version. So artifacts uploaded to Github release will be named correctly.
191-
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);"
191+
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);"
192192

193193
- name: Cache toolchain
194194
uses: actions/cache@v1

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@shield3/banyan",
3-
"version": "0.1.10",
3+
"version": "0.1.11",
44
"description": "Banyan policy engine",
55
"main": "dist/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)