Skip to content

Commit a4a65af

Browse files
authored
Update main.yml
1 parent 94d2ba7 commit a4a65af

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ jobs:
2727

2828
# ** FOR GENERAL USE, SHOULD NOT NEED TO CHANGE **
2929
instance: iris
30-
artifacts: artifacts
30+
artifact_dir: build-artifacts
31+
3132
# Note: test_reports value is duplicated in test_flags environment variable
3233
test_reports: test-reports
3334
test_flags: >-
@@ -47,9 +48,12 @@ jobs:
4748
mkdir $test_reports
4849
chmod 777 $test_reports
4950
51+
mkdir $artifact_dir
52+
chmod 777 $artifact_dir
53+
5054
# Run InterSystems IRIS Instance
5155
docker pull $container_image
52-
docker run -d -h $instance --name $instance -v $GITHUB_WORKSPACE:/source:rw -v $GITHUB_WORKSPACE/$test_reports:/$test_reports -v $GITHUB_WORKSPACE/$artifacts:/$artifacts --init $container_image
56+
docker run -d -h $instance --name $instance -v $GITHUB_WORKSPACE:/source:rw -v $GITHUB_WORKSPACE/$test_reports:/$test_reports -v $GITHUB_WORKSPACE/$artifact_dir:/$artifact_dir --init $container_image
5357
echo halt > wait
5458
# Wait for instance to be ready
5559
until docker exec --interactive $instance iris session $instance < wait; do sleep 1; done
@@ -77,7 +81,7 @@ jobs:
7781
run: |
7882
#
7983
echo "set version=##class(%ZPM.PackageManager.Developer.Module).NameOpen(\"git-source-control\").Version" > package
80-
echo "do ##class(SourceControl.Git.Utils).BuildCEInstallationPackage(\"$artifacts/git-source-control-\"_version_\".xml\")" >> package
84+
echo "do ##class(SourceControl.Git.Utils).BuildCEInstallationPackage(\"$artifact_dir/git-source-control-\"_version_\".xml\")" >> package
8185
echo "halt" >> package
8286
docker exec --interactive $instance iris session $instance -B < package
8387
@@ -86,7 +90,7 @@ jobs:
8690
if: always()
8791
with:
8892
name: "PreIRISInstallationPackage"
89-
path: ${{ artifacts }}
93+
path: ${{ env.artifact_dir }}
9094

9195
- name: XUnit Viewer
9296
id: xunit-viewer

0 commit comments

Comments
 (0)