From 0e4a4880039f1bfc50cfb343913460e2bdc38c04 Mon Sep 17 00:00:00 2001 From: DevOps asdf Date: Wed, 24 Jul 2024 20:08:29 -0400 Subject: [PATCH 1/2] Attempted to trigger another workflow --- .github/workflows/merge-forward 3.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/merge-forward 3.yaml b/.github/workflows/merge-forward 3.yaml index 2f14ff2..47e9ab6 100644 --- a/.github/workflows/merge-forward 3.yaml +++ b/.github/workflows/merge-forward 3.yaml @@ -38,3 +38,12 @@ jobs: git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/mbuchoff/automerge.git git push origin + + - name: Trigger Secondary Workflow on Different Branch + uses: benc-uk/workflow-dispatch@v1 + with: + owner: ${{ github.repository_owner }} + repo: ${{ github.event.repository.name }} + workflow: merge-forward 2.yml + token: ${{ secrets.GITHUB_TOKEN }} + ref: release/2 # Specify the target branch here From 5f7623ad0df5404db6d61cb6977f6e990cd3e78a Mon Sep 17 00:00:00 2001 From: DevOps asdf Date: Wed, 24 Jul 2024 20:10:16 -0400 Subject: [PATCH 2/2] Fixed token --- .github/workflows/merge-forward 3.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/merge-forward 3.yaml b/.github/workflows/merge-forward 3.yaml index 47e9ab6..2ab35ed 100644 --- a/.github/workflows/merge-forward 3.yaml +++ b/.github/workflows/merge-forward 3.yaml @@ -27,7 +27,7 @@ jobs: - name: Merge and push env: - GITHUB_TOKEN: ${{ secrets.PAT }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | set -e -v