From 29451562e36167955058e0a89ab9c41dec43979e Mon Sep 17 00:00:00 2001 From: Michael Teeuw Date: Mon, 21 Dec 2020 09:37:08 +0100 Subject: [PATCH 1/4] Create danger-ci.yml --- .github/workflows/danger-ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/danger-ci.yml diff --git a/.github/workflows/danger-ci.yml b/.github/workflows/danger-ci.yml new file mode 100644 index 00000000..0ac05896 --- /dev/null +++ b/.github/workflows/danger-ci.yml @@ -0,0 +1,28 @@ +# This is a basic workflow to help you get started with Actions +name: Danger CI + +# Controls when the action will run. +on: + # Triggers the workflow on push or pull request events but only for the master branch + push: + branches: [ master, develop, danger-ci ] + pull_request: + branches: [ master, develop, danger-ci ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + - name: Danger JS Action + uses: danger/danger-js@9.1.8 From 0f58a56a07f8ccec5c341abdd43450b4b161d18a Mon Sep 17 00:00:00 2001 From: Michael Teeuw Date: Mon, 21 Dec 2020 09:47:36 +0100 Subject: [PATCH 2/4] Add env variable. --- .github/workflows/danger-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/danger-ci.yml b/.github/workflows/danger-ci.yml index 0ac05896..0e32de9f 100644 --- a/.github/workflows/danger-ci.yml +++ b/.github/workflows/danger-ci.yml @@ -26,3 +26,5 @@ jobs: - name: Danger JS Action uses: danger/danger-js@9.1.8 + env: + DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }} From 86220fa72192757771000cf4d0d966d0a6be7932 Mon Sep 17 00:00:00 2001 From: Michael Teeuw Date: Mon, 21 Dec 2020 10:22:25 +0100 Subject: [PATCH 3/4] Update danger-ci.yml --- .github/workflows/danger-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/danger-ci.yml b/.github/workflows/danger-ci.yml index 0e32de9f..d40effce 100644 --- a/.github/workflows/danger-ci.yml +++ b/.github/workflows/danger-ci.yml @@ -27,4 +27,4 @@ jobs: - name: Danger JS Action uses: danger/danger-js@9.1.8 env: - DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }} + GITHUB_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }} From 616431e04b7c04fdcb391ca65a8312ff60fee106 Mon Sep 17 00:00:00 2001 From: Michael Teeuw Date: Mon, 21 Dec 2020 10:27:06 +0100 Subject: [PATCH 4/4] Disable Transpile. --- .github/workflows/danger-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/danger-ci.yml b/.github/workflows/danger-ci.yml index d40effce..a6819f42 100644 --- a/.github/workflows/danger-ci.yml +++ b/.github/workflows/danger-ci.yml @@ -27,4 +27,5 @@ jobs: - name: Danger JS Action uses: danger/danger-js@9.1.8 env: + DANGER_DISABLE_TRANSPILATION: true GITHUB_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}