-
Notifications
You must be signed in to change notification settings - Fork 15
83 lines (73 loc) · 2.56 KB
/
bump-version.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
75
76
77
78
79
80
81
82
83
name: Changed-files
on:
pull_request:
branches:
- main
jobs:
changed_files:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
outputs:
status: ${{ steps.check-labels.outputs.status }}
name: Test changed-files
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get javascore files that have changed
id: changed-files-javascore
uses: tj-actions/changed-files@v39
with:
files_yaml: |
ibc:
- 'contracts/javascore/ibc/**'
lightclients:
- contracts/javascore/lightclients/**
xcall-connection:
- contracts/javascore/xcall-connection/**
- name: Run step if test file(s) change
if: steps.changed-files-javascore.outputs.ibc_any_changed == 'true'
run: |
echo "$steps.changed-files-javascore.outputs.ibc_any_changed"
echo "One or more test file(s) has changed."
echo "List all the files that have changed: ${{ steps.changed-files-javascore.outputs.ibc_all_changed_files }}"
- name: Run step if doc file(s) change
if: steps.changed-files-javascore.outputs.lightclients_any_changed == 'true'
run: |
echo "One or more doc file(s) has changed."
echo "List all the files that have changed: ${{ steps.changed-files-javascore.outputs.lightclients_all_changed_files }}"
- name: Check Label
id: check-labels
uses: mheap/github-action-required-labels@v5
with:
mode: exactly
count: 1
labels: "semver:patch, semver:minor, semver:major, cicd"
exit_type: success
- name: check value
if: steps.check-labels.outputs.labels == 'semver'
run: echo "${{steps.check-labels.outputs.labels}}"
- name: Offer PR Label Guidance
uses: fountainhead/[email protected]
id: labels
with:
token: ${{ secrets.GITHUB_TOKEN }}
id: default
whitelist: cicd,semver:minor
- name: Create/Update Preview Instance
if: steps.labels.outputs.preview-instance == 'present'
run: echo "PR Label present"
- uses: dorny/paths-filter@v2
id: filter
with:
working-directory: contracts/javascore
filters: |
ibc:
- 'ibc/**'
lightclients:
- 'lightclients/**'
- name: backend tests
if: steps.filter.outputs.ibc == 'true'
run: echo "There is changes"