diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0481283a9..d40a4f2ad 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,6 +7,7 @@ on: pull_request: branches: - master + workflow_dispatch: jobs: build_and_test: @@ -36,3 +37,8 @@ jobs: run: ci/build.bash $PWD/cross $target - name: Run tests run: ci/test.bash $PWD/cross $target + - name: Trigger lines of code counter re-deploy + # if: github.ref == 'refs/heads/master' && github.event_name == 'push' + run: ci/redeploy_lines_of_code_counter.bash + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/ci/redeploy_lines_of_code_counter.bash b/ci/redeploy_lines_of_code_counter.bash new file mode 100755 index 000000000..9663a9c59 --- /dev/null +++ b/ci/redeploy_lines_of_code_counter.bash @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +# Script for triggering deploy of lines of code counter. +set -e + +gh workflow run deploy.yml --repo exercism/lines-of-code-counter