We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90d6cdf commit 9174c20Copy full SHA for 9174c20
.github/workflows/main.yaml
@@ -1,11 +1,22 @@
1
on:
2
push:
3
branches:
4
- - '*'
+ - 'main'
5
+ - 'latest-release'
6
pull_request:
7
merge_group:
8
+ workflow_dispatch:
9
+ inputs:
10
+ release:
11
+ description: Test with the release lock
12
+ type: boolean
13
+ default: false
14
+
15
+env:
16
+ lock_pdm: ${{ ! (github.ref_name == 'refs/heads/latest-release' || inputs.release) }}
17
18
name: CI
19
+run-name: ${{ inputs.release && 'Release' || 'CI'}}
20
jobs:
21
22
submit:
@@ -29,6 +40,7 @@ jobs:
29
40
cache: true
30
41
31
42
- name: Relock PDM
43
+ if: env.lock_pdm
32
44
run: pdm lock -d
33
45
34
46
- name: Install dependencies
@@ -62,6 +74,7 @@ jobs:
62
74
63
75
64
76
77
65
78
run: |
66
79
pdm lock -d
67
80
0 commit comments