-
-
Notifications
You must be signed in to change notification settings - Fork 390
74 lines (62 loc) · 2.39 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Test
on: workflow_dispatch
jobs:
show-version:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get Flurl csproj version
id: csproj_ver_flurl
uses: KageKirin/[email protected]
with:
file: src/Flurl/Flurl.csproj
- name: Get Flurl latest release tag
id: release_ver_flurl
uses: oprypin/[email protected]
with:
repository: tmenier/Flurl
releases-only: true
regex: '^Flurl\.\d+'
- name: Get Flurl.Http csproj version
id: csproj_ver_flurl_http
uses: KageKirin/[email protected]
with:
file: src/Flurl.Http/Flurl.Http.csproj
- name: Get Flurl.Http latest release tag
id: release_ver_flurl_http
uses: oprypin/[email protected]
with:
repository: tmenier/Flurl
releases-only: true
regex: '^Flurl\.Http\.\d+'
- name: Echo
run: |
echo "Flurl csproj version: ${{ steps.csproj_ver_flurl.outputs.version }}"
echo "Flurl latest release tag: ${{ steps.release_ver_flurl.outputs.tag }}"
echo "Flurl.Http csproj version: ${{ steps.csproj_ver_flurl_http.outputs.version }}"
echo "Flurl.Http latest release tag: ${{ steps.release_ver_flurl_http.outputs.tag }}"
- name: Flurl Yes
env:
CURRENT_VER: ${{ steps.release_ver_flurl.outputs.tag }}
NEXT_VER: "Flurl.${{ steps.csproj_ver_flurl.outputs.version }}"
if: env.NEXT_VER != env.CURRENT_VER
run: echo "SHOULD draft Flurl release"
- name: Flurl No
env:
CURRENT_VER: ${{ steps.release_ver_flurl.outputs.tag }}
NEXT_VER: "Flurl.${{ steps.csproj_ver_flurl.outputs.version }}"
if: env.NEXT_VER == env.CURRENT_VER
run: echo "SHOULD NOT draft Flurl release"
- name: Flurl.Http Yes
env:
CURRENT_VER: ${{ steps.release_ver_flurl.outputs.tag }}
NEXT_VER: "Flurl.Http.${{ steps.csproj_ver_flurl.outputs.version }}"
if: env.NEXT_VER != env.CURRENT_VER
run: echo "SHOULD draft Flurl.Http release"
- name: Flurl.Http No
env:
CURRENT_VER: ${{ steps.release_ver_flurl_http.outputs.tag }}
NEXT_VER: "Flurl.Http.${{ steps.csproj_ver_flurl.outputs.version }}"
if: env.NEXT_VER == env.CURRENT_VER
run: echo "SHOULD NOT draft Flurl.Http release"