From baf28e8a45051b5a8c9d659927c64f5f0382d210 Mon Sep 17 00:00:00 2001 From: Robert Bartel Date: Tue, 15 Oct 2024 14:57:29 -0400 Subject: [PATCH] Fix placement of constraints.txt in Action. Cannot move to / due to read-only file system; instead, use $GITHUB_WORKSPACE in order to be able to specify absolute path to file in PIP_CONSTRAINT. --- .github/actions/ngen-build/action.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/actions/ngen-build/action.yaml b/.github/actions/ngen-build/action.yaml index 04a693d7f5..8c0f79730b 100644 --- a/.github/actions/ngen-build/action.yaml +++ b/.github/actions/ngen-build/action.yaml @@ -122,9 +122,8 @@ runs: - name: Set Pip Constraints run: | - echo "numpy<2.0" > constraints.txt - sudo mv constraints.txt /constraints.txt - echo "PIP_CONSTRAINT=/constraints.txt" >> $GITHUB_ENV + echo "numpy<2.0" > $GITHUB_WORKSPACE/constraints.txt + echo "PIP_CONSTRAINT=$GITHUB_WORKSPACE/constraints.txt" >> $GITHUB_ENV shell: bash - name: Cache Python Dependencies