fix(CI): update runner, display .env for upcoming (#39808)

This commit is contained in:
Mrugesh Mohapatra
2020-10-07 16:20:59 +05:30
committed by GitHub
parent 05f11a7007
commit eab14b8235
3 changed files with 16 additions and 13 deletions

View File

@ -8,7 +8,7 @@ on:
jobs: jobs:
i18n-sync-docs: i18n-sync-docs:
name: Docs name: Docs
runs-on: ubuntu-latest runs-on: ubuntu-18.04
steps: steps:
- name: Checkout Source Files - name: Checkout Source Files
@ -25,17 +25,17 @@ jobs:
# downloads # downloads
download_translations: true download_translations: true
commit_message: 'chore(docs,i8n): processed translations from crowdin' commit_message: "chore(docs,i8n): processed translations from crowdin"
# pull-request # pull-request
localization_branch_name: i18n-sync-docs localization_branch_name: i18n-sync-docs
create_pull_request: true create_pull_request: true
pull_request_title: 'chore(docs,i8n): processed translations from crowdin' pull_request_title: "chore(docs,i8n): processed translations from crowdin"
pull_request_body: '' pull_request_body: ""
pull_request_labels: 'scope: i18n, scope: docs, crowdin-sync' pull_request_labels: "scope: i18n, scope: docs, crowdin-sync"
# global options # global options
config: './docs/crowdin.yml' config: "./docs/crowdin.yml"
base_url: ${{ secrets.CROWDIN_BASE_URL_FCC }} base_url: ${{ secrets.CROWDIN_BASE_URL_FCC }}
# Uncomment below to debug # Uncomment below to debug

View File

@ -1,4 +1,4 @@
name: Node.js CI (Next) name: Node.js CI - Test Upcoming
on: on:
push: push:
branches: branches:
@ -7,10 +7,9 @@ on:
- upcoming-** - upcoming-**
schedule: schedule:
# run this Action every 14 days # run this Action every 14 days
- cron: '0 * */14 * *' - cron: "0 * */14 * *"
workflow_dispatch: workflow_dispatch:
jobs: jobs:
lint: lint:
name: Lint name: Lint
@ -43,7 +42,10 @@ jobs:
${{ runner.os }}- ${{ runner.os }}-
- name: Set Environment variables - name: Set Environment variables
run: cp sample.env .env run: |
cp sample.env .env
echo 'SHOW_UPCOMING_CHANGES=true' >> .env
cat .env
- name: Lint Source Files - name: Lint Source Files
run: | run: |
@ -54,7 +56,7 @@ jobs:
test: test:
name: Test name: Test
needs: lint needs: lint
runs-on: ubuntu-latest runs-on: ubuntu-18.04
strategy: strategy:
matrix: matrix:
@ -86,6 +88,7 @@ jobs:
run: | run: |
cp sample.env .env cp sample.env .env
echo 'SHOW_UPCOMING_CHANGES=true' >> .env echo 'SHOW_UPCOMING_CHANGES=true' >> .env
cat .env
- name: Install Dependencies - name: Install Dependencies
run: | run: |

View File

@ -44,7 +44,7 @@ jobs:
test: test:
name: Test name: Test
needs: lint needs: lint
runs-on: ubuntu-latest runs-on: ubuntu-18.04
strategy: strategy:
matrix: matrix: