From 354d7e7c750be19c760dbf28537b30d07b6d2c21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Th=C3=A9riault?= Date: Mon, 28 Aug 2023 11:59:14 -0700 Subject: [PATCH] properly trigger checks from deps workflow --- .github/workflows/checks.yml | 1 + .github/workflows/deps.yml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 10dc945e..265340c5 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -2,6 +2,7 @@ name: Checks on: - push - pull_request + - workflow_dispatch jobs: checks: diff --git a/.github/workflows/deps.yml b/.github/workflows/deps.yml index 48519d14..93713ef5 100644 --- a/.github/workflows/deps.yml +++ b/.github/workflows/deps.yml @@ -21,6 +21,7 @@ jobs: - run: yarn up -R '**' - run: yarn dedupe + # https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#triggering-a-workflow-from-a-workflow - name: PR run: | git config user.email "41898282+github-actions[bot]@users.noreply.github.com" @@ -32,5 +33,6 @@ jobs: git push origin +actions/lockfile gh pr create -B ${{ github.ref_name }} -t "Update lockfile" --body-file .github/resources/lockfile-pr-body.md + gh workflow run checks.yml -r actions/lockfile env: GITHUB_TOKEN: ${{ github.token }}