File tree 1 file changed +13
-3
lines changed 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -12,16 +12,26 @@ jobs:
12
12
environment : dev_environment
13
13
runs-on : ubuntu-latest
14
14
steps :
15
+ - name : Get Python 3.10
16
+ uses : actions/setup-python@v4
17
+ with :
18
+ python-version : ' 3.10'
15
19
- name : Checkout
16
20
uses : actions/checkout@v4
17
21
with :
18
22
fetch-depth : 0 # otherwise, you will failed to push refs to dest repo
19
- - name : Set env
20
- run : echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
23
+ - name : Get version set env, exit if beta release
24
+ run : |
25
+ echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
26
+ if [[ "$RELEASE_VERSION" == *"b"* ]]; then
27
+ echo "Version is a beta release. Cancel workflow."
28
+ exit 0
29
+ fi
21
30
- name : Install dependencies
22
31
run : |
23
32
sudo apt-get update;
24
- sudo apt-get install pandoc
33
+ sudo apt-get install pandoc;
34
+ pip install -e .
25
35
- name : Build and Commit
26
36
uses : sphinx-notes/pages@v2
27
37
with :
You can’t perform that action at this time.
0 commit comments