mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-13 06:16:33 +00:00
Apply suggestions from code review
Co-authored-by: per1234 <accounts@perglass.com>
This commit is contained in:
parent
ea2aeec69b
commit
8cbf7f419c
30
.github/workflows/check-i18n-task.yml
vendored
30
.github/workflows/check-i18n-task.yml
vendored
@ -6,18 +6,15 @@ env:
|
|||||||
|
|
||||||
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
|
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
|
||||||
on:
|
on:
|
||||||
create:
|
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/check-i18n-task.ya?ml'
|
- '.github/workflows/check-i18n-task.ya?ml'
|
||||||
- 'package.json'
|
|
||||||
- '**/package.json'
|
- '**/package.json'
|
||||||
- '**.ts'
|
- '**.ts'
|
||||||
- 'i18n/**'
|
- 'i18n/**'
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/check-i18n-task.ya?ml'
|
- '.github/workflows/check-i18n-task.ya?ml'
|
||||||
- 'package.json'
|
|
||||||
- '**/package.json'
|
- '**/package.json'
|
||||||
- '**.ts'
|
- '**.ts'
|
||||||
- 'i18n/**'
|
- 'i18n/**'
|
||||||
@ -25,32 +22,7 @@ on:
|
|||||||
repository_dispatch:
|
repository_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run-determination:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
outputs:
|
|
||||||
result: ${{ steps.determination.outputs.result }}
|
|
||||||
steps:
|
|
||||||
- name: Determine if the rest of the workflow should run
|
|
||||||
id: determination
|
|
||||||
run: |
|
|
||||||
RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x"
|
|
||||||
# The `create` event trigger doesn't support `branches` filters, so it's necessary to use Bash instead.
|
|
||||||
if [[ \
|
|
||||||
"${{ github.event_name }}" != "create" || \
|
|
||||||
"${{ github.ref }}" =~ $RELEASE_BRANCH_REGEX \
|
|
||||||
]]; then
|
|
||||||
# Run the other jobs.
|
|
||||||
RESULT="true"
|
|
||||||
else
|
|
||||||
# There is no need to run the other jobs.
|
|
||||||
RESULT="false"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "::set-output name=result::$RESULT"
|
|
||||||
|
|
||||||
check:
|
check:
|
||||||
needs: run-determination
|
|
||||||
if: needs.run-determination.outputs.result == 'true'
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -58,7 +30,7 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Install Node.js 12.x
|
- name: Install Node.js 12.x
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '12.14.1'
|
node-version: '12.14.1'
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
5
.github/workflows/i18n-nightly-push.yml
vendored
5
.github/workflows/i18n-nightly-push.yml
vendored
@ -7,16 +7,13 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
push-to-transifex:
|
push-to-transifex:
|
||||||
# This workflow is only of value to the arduino/arduino-ide repository and
|
|
||||||
# would always fail in forks
|
|
||||||
if: github.repository == 'arduino/arduino-ide'
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Install Node.js 12.x
|
- name: Install Node.js 12.x
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '12.14.1'
|
node-version: '12.14.1'
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
7
.github/workflows/i18n-weekly-pull.yml
vendored
7
.github/workflows/i18n-weekly-pull.yml
vendored
@ -7,16 +7,13 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pull-from-transifex:
|
pull-from-transifex:
|
||||||
# This workflow is only of value to the arduino/arduino-ide repository and
|
|
||||||
# would always fail in forks
|
|
||||||
if: github.repository == 'arduino/arduino-ide'
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Install Node.js 12.x
|
- name: Install Node.js 12.x
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '12.14.1'
|
node-version: '12.14.1'
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
@ -33,6 +30,6 @@ jobs:
|
|||||||
uses: peter-evans/create-pull-request@v3
|
uses: peter-evans/create-pull-request@v3
|
||||||
with:
|
with:
|
||||||
commit-message: Updated translation files
|
commit-message: Updated translation files
|
||||||
title: Updated translation files
|
title: Update translation files
|
||||||
branch: i18n/translations-update
|
branch: i18n/translations-update
|
||||||
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
|
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user