From 64570379661369ec88471f263579529483331200 Mon Sep 17 00:00:00 2001 From: Joyce Brum Date: Wed, 13 Nov 2024 17:25:24 +0000 Subject: [PATCH] Fix: GitHub workflow script injection Signed-off-by: Joyce Brum --- .github/workflows/hdmf_compatibility_schema.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/hdmf_compatibility_schema.yml b/.github/workflows/hdmf_compatibility_schema.yml index dc76f68..441fd68 100644 --- a/.github/workflows/hdmf_compatibility_schema.yml +++ b/.github/workflows/hdmf_compatibility_schema.yml @@ -2,6 +2,9 @@ name: Check HDMF Dev Compatibility on: [pull_request, workflow_dispatch] +env: + HEAD_REF: ${{ github.head_ref }} + jobs: check_compatibility: runs-on: ubuntu-latest @@ -23,6 +26,6 @@ jobs: python -m pip install -r requirements-dev.txt -r requirements.txt python -m pip install -e . cd src/hdmf/common/hdmf-common-schema - git checkout ${{ github.head_ref }} # checkout branch + git checkout $HEAD_REF # checkout branch cd ../../../.. pytest tests/unit/common/