From 49ccf40855318a04d596251daf48faa854bd7e6c Mon Sep 17 00:00:00 2001 From: AJ Foster <2789166+aj-foster@users.noreply.github.com> Date: Tue, 10 Sep 2024 10:28:35 -0400 Subject: [PATCH] Use path-based installation of generator --- .github/workflows/generate.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index 2097f78..cdaca93 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -30,7 +30,7 @@ jobs: - name: Setup Ref (Pull Request) if: github.event_name == 'pull_request' run: | - echo "REF=$GITHUB_HEAD_REF" >> $GITHUB_ENV + echo "REF=pr/$GITHUB_REF_NAME" >> $GITHUB_ENV - name: Setup Ref (Workflow Dispatch) if: github.event_name == 'workflow_dispatch' @@ -59,7 +59,7 @@ jobs: - name: Generate Code run: | cd diffs/ - elixir generate.exs "$REF" + elixir generate.exs "path:../generator" - name: Save Code run: |