From 47ee479538c954465e52a4d61d30e6e101af9431 Mon Sep 17 00:00:00 2001 From: Kevin Harrington Date: Wed, 30 Mar 2022 15:16:27 -0400 Subject: [PATCH 01/10] Whitspace the linked directories --- .github/workflows/reusable-release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/reusable-release.yml b/.github/workflows/reusable-release.yml index e326321..2be1805 100644 --- a/.github/workflows/reusable-release.yml +++ b/.github/workflows/reusable-release.yml @@ -23,6 +23,8 @@ jobs: - name: Get the version id: get_version run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} + + - name: Link source Into Workspace run: | mkdir -p $HOME/bowler-workspace/gitcache/github.com/${{ github.repository_owner }}/ From 6514b35b914c1919dd608e5fa63af939648904f9 Mon Sep 17 00:00:00 2001 From: Kevin Harrington Date: Wed, 30 Mar 2022 15:17:56 -0400 Subject: [PATCH 02/10] each a step --- .github/workflows/reusable-release.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/reusable-release.yml b/.github/workflows/reusable-release.yml index 2be1805..2d87c96 100644 --- a/.github/workflows/reusable-release.yml +++ b/.github/workflows/reusable-release.yml @@ -25,12 +25,14 @@ jobs: run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} - - name: Link source Into Workspace - run: | - mkdir -p $HOME/bowler-workspace/gitcache/github.com/${{ github.repository_owner }}/ - ln -s . $HOME/bowler-workspace/gitcache/github.com/${{ github.repository_owner }}/ - ls -al $HOME/bowler-workspace/gitcache/github.com/ - ls -al $HOME/bowler-workspace/gitcache/github.com/${{ github.repository_owner }}/ + - name: Link source Into Workspace 1 + run: mkdir -p $HOME/bowler-workspace/gitcache/github.com/${{ github.repository_owner }}/ + - name: Link source Into Workspace 2 + run: ln -s . $HOME/bowler-workspace/gitcache/github.com/${{ github.repository_owner }}/ + - name: Link source Into Workspace 3 + run: ls -al $HOME/bowler-workspace/gitcache/github.com/ + - name: Link source Into Workspace 4 + run: ls -al $HOME/bowler-workspace/gitcache/github.com/${{ github.repository_owner }}/ - name: Install libraries run: | From 5caab7abd749a4f271adce3d891a4c2a29dff211 Mon Sep 17 00:00:00 2001 From: Kevin Harrington Date: Wed, 30 Mar 2022 15:19:20 -0400 Subject: [PATCH 03/10] error fix --- .github/workflows/reusable-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/reusable-release.yml b/.github/workflows/reusable-release.yml index 2d87c96..3373d0f 100644 --- a/.github/workflows/reusable-release.yml +++ b/.github/workflows/reusable-release.yml @@ -32,7 +32,7 @@ jobs: - name: Link source Into Workspace 3 run: ls -al $HOME/bowler-workspace/gitcache/github.com/ - name: Link source Into Workspace 4 - run: ls -al $HOME/bowler-workspace/gitcache/github.com/${{ github.repository_owner }}/ + run: ls -al $HOME/bowler-workspace/gitcache/github.com/*/ - name: Install libraries run: | From 049803631c20f783b56e6e6eb80ceaeded9e8358 Mon Sep 17 00:00:00 2001 From: Kevin Harrington Date: Wed, 30 Mar 2022 15:20:13 -0400 Subject: [PATCH 04/10] whitespace check --- .github/workflows/reusable-release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/reusable-release.yml b/.github/workflows/reusable-release.yml index 3373d0f..057470c 100644 --- a/.github/workflows/reusable-release.yml +++ b/.github/workflows/reusable-release.yml @@ -31,9 +31,10 @@ jobs: run: ln -s . $HOME/bowler-workspace/gitcache/github.com/${{ github.repository_owner }}/ - name: Link source Into Workspace 3 run: ls -al $HOME/bowler-workspace/gitcache/github.com/ + - name: Link source Into Workspace 4 run: ls -al $HOME/bowler-workspace/gitcache/github.com/*/ - + - name: Install libraries run: | sudo apt update From bd2ed39666a8b9e6b50a34ea086acc66b7f4855e Mon Sep 17 00:00:00 2001 From: Kevin Harrington Date: Wed, 30 Mar 2022 15:22:11 -0400 Subject: [PATCH 05/10] test changes in CI --- .github/workflows/CI-build-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI-build-test.yml b/.github/workflows/CI-build-test.yml index bbd32e3..9acb0f7 100644 --- a/.github/workflows/CI-build-test.yml +++ b/.github/workflows/CI-build-test.yml @@ -6,7 +6,7 @@ on: jobs: call-workflow-passing-data: - uses: CommonWealthRobotics/Bowler-Script-Release-CI/.github/workflows/reusable-release.yml@main + uses: CommonWealthRobotics/Bowler-Script-Release-CI/.github/workflows/reusable-release.yml@feature/linksource with: filename: "CI-build-test-groovy-archive" filelocation: "./CI-build-test.groovy" From 4a1b52b3604f4d51c04d8300f0ab842dd92281df Mon Sep 17 00:00:00 2001 From: Kevin Harrington Date: Wed, 30 Mar 2022 15:25:01 -0400 Subject: [PATCH 06/10] make the symlink --- .github/workflows/reusable-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/reusable-release.yml b/.github/workflows/reusable-release.yml index 057470c..ec5ce30 100644 --- a/.github/workflows/reusable-release.yml +++ b/.github/workflows/reusable-release.yml @@ -28,7 +28,7 @@ jobs: - name: Link source Into Workspace 1 run: mkdir -p $HOME/bowler-workspace/gitcache/github.com/${{ github.repository_owner }}/ - name: Link source Into Workspace 2 - run: ln -s . $HOME/bowler-workspace/gitcache/github.com/${{ github.repository_owner }}/ + run: ln -s ../${{ github.event.repository.name }}/ $HOME/bowler-workspace/gitcache/github.com/${{ github.repository_owner }}/ - name: Link source Into Workspace 3 run: ls -al $HOME/bowler-workspace/gitcache/github.com/ From 4a3d4e7b37d286f1204be12ec2f6898d8402d2bd Mon Sep 17 00:00:00 2001 From: Kevin Harrington Date: Wed, 30 Mar 2022 15:36:05 -0400 Subject: [PATCH 07/10] list the linked directory --- .github/workflows/reusable-release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/reusable-release.yml b/.github/workflows/reusable-release.yml index ec5ce30..f74f23a 100644 --- a/.github/workflows/reusable-release.yml +++ b/.github/workflows/reusable-release.yml @@ -24,7 +24,8 @@ jobs: id: get_version run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} - + - name: Print Home + run: echo $HOME - name: Link source Into Workspace 1 run: mkdir -p $HOME/bowler-workspace/gitcache/github.com/${{ github.repository_owner }}/ - name: Link source Into Workspace 2 @@ -33,7 +34,7 @@ jobs: run: ls -al $HOME/bowler-workspace/gitcache/github.com/ - name: Link source Into Workspace 4 - run: ls -al $HOME/bowler-workspace/gitcache/github.com/*/ + run: ls -al $HOME/bowler-workspace/gitcache/github.com/${{ github.repository_owner }}/${{ github.event.repository.name }}/ - name: Install libraries run: | From 86544a72079bf7bf225a8d27a3c1a31089419b82 Mon Sep 17 00:00:00 2001 From: Kevin Harrington Date: Wed, 30 Mar 2022 15:39:57 -0400 Subject: [PATCH 08/10] listing more data --- .github/workflows/reusable-release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/reusable-release.yml b/.github/workflows/reusable-release.yml index f74f23a..f13d98b 100644 --- a/.github/workflows/reusable-release.yml +++ b/.github/workflows/reusable-release.yml @@ -25,15 +25,18 @@ jobs: run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} - name: Print Home - run: echo $HOME + run: echo $HOME + - name: Print Workspace + run: echo $PWD - name: Link source Into Workspace 1 run: mkdir -p $HOME/bowler-workspace/gitcache/github.com/${{ github.repository_owner }}/ - name: Link source Into Workspace 2 run: ln -s ../${{ github.event.repository.name }}/ $HOME/bowler-workspace/gitcache/github.com/${{ github.repository_owner }}/ - name: Link source Into Workspace 3 run: ls -al $HOME/bowler-workspace/gitcache/github.com/ - - name: Link source Into Workspace 4 + run: ls -al $HOME/bowler-workspace/gitcache/github.com/${{ github.repository_owner }}/ + - name: Link source Into Workspace 5 run: ls -al $HOME/bowler-workspace/gitcache/github.com/${{ github.repository_owner }}/${{ github.event.repository.name }}/ - name: Install libraries From 17b1c72789b390b5d2f278aad254efc0a98a02ac Mon Sep 17 00:00:00 2001 From: Kevin Harrington Date: Wed, 30 Mar 2022 15:40:35 -0400 Subject: [PATCH 09/10] link PWD --- .github/workflows/reusable-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/reusable-release.yml b/.github/workflows/reusable-release.yml index f13d98b..ee95bfa 100644 --- a/.github/workflows/reusable-release.yml +++ b/.github/workflows/reusable-release.yml @@ -31,7 +31,7 @@ jobs: - name: Link source Into Workspace 1 run: mkdir -p $HOME/bowler-workspace/gitcache/github.com/${{ github.repository_owner }}/ - name: Link source Into Workspace 2 - run: ln -s ../${{ github.event.repository.name }}/ $HOME/bowler-workspace/gitcache/github.com/${{ github.repository_owner }}/ + run: ln -s $PWD $HOME/bowler-workspace/gitcache/github.com/${{ github.repository_owner }}/ - name: Link source Into Workspace 3 run: ls -al $HOME/bowler-workspace/gitcache/github.com/ - name: Link source Into Workspace 4 From 9bf3cc2520dea13722b22a5a025d75100f2c90d6 Mon Sep 17 00:00:00 2001 From: Kevin Harrington Date: Wed, 30 Mar 2022 15:51:28 -0400 Subject: [PATCH 10/10] set back to main --- .github/workflows/CI-build-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI-build-test.yml b/.github/workflows/CI-build-test.yml index 9acb0f7..bbd32e3 100644 --- a/.github/workflows/CI-build-test.yml +++ b/.github/workflows/CI-build-test.yml @@ -6,7 +6,7 @@ on: jobs: call-workflow-passing-data: - uses: CommonWealthRobotics/Bowler-Script-Release-CI/.github/workflows/reusable-release.yml@feature/linksource + uses: CommonWealthRobotics/Bowler-Script-Release-CI/.github/workflows/reusable-release.yml@main with: filename: "CI-build-test-groovy-archive" filelocation: "./CI-build-test.groovy"