Skip to content

Commit e51cc62

Browse files
committed
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.
1 parent 7fdb524 commit e51cc62

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/actions/ngen-build/action.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,8 @@ runs:
122122

123123
- name: Set Pip Constraints
124124
run: |
125-
echo "numpy<2.0" > constraints.txt
126-
sudo mv constraints.txt /constraints.txt
127-
echo "PIP_CONSTRAINT=/constraints.txt" >> $GITHUB_ENV
125+
echo "numpy<2.0" > $GITHUB_WORKSPACE/constraints.txt
126+
echo "PIP_CONSTRAINT=$GITHUB_WORKSPACE/constraints.txt" >> $GITHUB_ENV
128127
shell: bash
129128

130129
- name: Cache Python Dependencies

0 commit comments

Comments
 (0)