File tree 3 files changed +4
-38
lines changed
3 files changed +4
-38
lines changed Original file line number Diff line number Diff line change 6
6
7
7
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
8
8
on :
9
- create :
10
9
push :
11
10
paths :
12
11
- ' .github/workflows/check-i18n-task.ya?ml'
13
- - ' package.json'
14
12
- ' **/package.json'
15
13
- ' **.ts'
16
14
- ' i18n/**'
17
15
pull_request :
18
16
paths :
19
17
- ' .github/workflows/check-i18n-task.ya?ml'
20
- - ' package.json'
21
18
- ' **/package.json'
22
19
- ' **.ts'
23
20
- ' i18n/**'
24
21
workflow_dispatch :
25
22
repository_dispatch :
26
23
27
24
jobs :
28
- run-determination :
29
- runs-on : ubuntu-latest
30
- outputs :
31
- result : ${{ steps.determination.outputs.result }}
32
- steps :
33
- - name : Determine if the rest of the workflow should run
34
- id : determination
35
- run : |
36
- RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x"
37
- # The `create` event trigger doesn't support `branches` filters, so it's necessary to use Bash instead.
38
- if [[ \
39
- "${{ github.event_name }}" != "create" || \
40
- "${{ github.ref }}" =~ $RELEASE_BRANCH_REGEX \
41
- ]]; then
42
- # Run the other jobs.
43
- RESULT="true"
44
- else
45
- # There is no need to run the other jobs.
46
- RESULT="false"
47
- fi
48
-
49
- echo "::set-output name=result::$RESULT"
50
-
51
25
check :
52
- needs : run-determination
53
- if : needs.run-determination.outputs.result == 'true'
54
26
runs-on : ubuntu-latest
55
27
56
28
steps :
57
29
- name : Checkout repository
58
30
uses : actions/checkout@v2
59
31
60
32
- name : Install Node.js 12.x
61
- uses : actions/setup-node@v1
33
+ uses : actions/setup-node@v2
62
34
with :
63
35
node-version : ' 12.14.1'
64
36
registry-url : ' https://registry.npmjs.org'
Original file line number Diff line number Diff line change 7
7
8
8
jobs :
9
9
push-to-transifex :
10
- # This workflow is only of value to the arduino/arduino-ide repository and
11
- # would always fail in forks
12
- if : github.repository == 'arduino/arduino-ide'
13
10
runs-on : ubuntu-latest
14
11
steps :
15
12
- name : Checkout
16
13
uses : actions/checkout@v2
17
14
18
15
- name : Install Node.js 12.x
19
- uses : actions/setup-node@v1
16
+ uses : actions/setup-node@v2
20
17
with :
21
18
node-version : ' 12.14.1'
22
19
registry-url : ' https://registry.npmjs.org'
Original file line number Diff line number Diff line change 7
7
8
8
jobs :
9
9
pull-from-transifex :
10
- # This workflow is only of value to the arduino/arduino-ide repository and
11
- # would always fail in forks
12
- if : github.repository == 'arduino/arduino-ide'
13
10
runs-on : ubuntu-latest
14
11
steps :
15
12
- name : Checkout
16
13
uses : actions/checkout@v2
17
14
18
15
- name : Install Node.js 12.x
19
- uses : actions/setup-node@v1
16
+ uses : actions/setup-node@v2
20
17
with :
21
18
node-version : ' 12.14.1'
22
19
registry-url : ' https://registry.npmjs.org'
33
30
uses : peter-evans/create-pull-request@v3
34
31
with :
35
32
commit-message : Updated translation files
36
- title : Updated translation files
33
+ title : Update translation files
37
34
branch : i18n/translations-update
38
35
author : github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
You can’t perform that action at this time.
0 commit comments