diff --git a/.github/workflows/check-i18n-task.yml b/.github/workflows/check-i18n-task.yml index 8735ed1d..d58cc9fa 100644 --- a/.github/workflows/check-i18n-task.yml +++ b/.github/workflows/check-i18n-task.yml @@ -6,18 +6,15 @@ env: # See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows on: - create: push: paths: - '.github/workflows/check-i18n-task.ya?ml' - - 'package.json' - '**/package.json' - '**.ts' - 'i18n/**' pull_request: paths: - '.github/workflows/check-i18n-task.ya?ml' - - 'package.json' - '**/package.json' - '**.ts' - 'i18n/**' @@ -25,32 +22,7 @@ on: repository_dispatch: 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: - needs: run-determination - if: needs.run-determination.outputs.result == 'true' runs-on: ubuntu-latest steps: @@ -58,7 +30,7 @@ jobs: uses: actions/checkout@v2 - name: Install Node.js 12.x - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: '12.14.1' registry-url: 'https://registry.npmjs.org' diff --git a/.github/workflows/i18n-nightly-push.yml b/.github/workflows/i18n-nightly-push.yml index 942a3f6d..a519bec8 100644 --- a/.github/workflows/i18n-nightly-push.yml +++ b/.github/workflows/i18n-nightly-push.yml @@ -7,16 +7,13 @@ on: jobs: 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 steps: - name: Checkout uses: actions/checkout@v2 - name: Install Node.js 12.x - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: '12.14.1' registry-url: 'https://registry.npmjs.org' diff --git a/.github/workflows/i18n-weekly-pull.yml b/.github/workflows/i18n-weekly-pull.yml index e97fc213..0497410b 100644 --- a/.github/workflows/i18n-weekly-pull.yml +++ b/.github/workflows/i18n-weekly-pull.yml @@ -7,16 +7,13 @@ on: jobs: 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 steps: - name: Checkout uses: actions/checkout@v2 - name: Install Node.js 12.x - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: '12.14.1' registry-url: 'https://registry.npmjs.org' @@ -33,6 +30,6 @@ jobs: uses: peter-evans/create-pull-request@v3 with: commit-message: Updated translation files - title: Updated translation files + title: Update translation files branch: i18n/translations-update author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>