From 76946beaedfa4131c269e73b87002996fee37969 Mon Sep 17 00:00:00 2001 From: MFA-X-AI <68586800+MFA-X-AI@users.noreply.github.com> Date: Tue, 15 Feb 2022 22:15:54 +0700 Subject: [PATCH 01/16] updated wheel name in github action --- .github/workflows/build-python-wheel.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-python-wheel.yml b/.github/workflows/build-python-wheel.yml index 5b55d235..a8c3e132 100644 --- a/.github/workflows/build-python-wheel.yml +++ b/.github/workflows/build-python-wheel.yml @@ -45,5 +45,5 @@ jobs: - name: Upload Artifacts uses: actions/upload-artifact@v2 with: - name: xircuits-wheel + name: xircuits-wheel-${GITHUB_REF#refs/*/}-$(git rev-parse --short "$GITHUB_SHA") path: dist From 76d0a57cc3b96f39bad9193cde7aef5af44c1e57 Mon Sep 17 00:00:00 2001 From: MFA-X-AI <68586800+MFA-X-AI@users.noreply.github.com> Date: Tue, 15 Feb 2022 22:28:06 +0700 Subject: [PATCH 02/16] 2nd attempt of getting the branch and commit hash right --- .github/workflows/build-python-wheel.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-python-wheel.yml b/.github/workflows/build-python-wheel.yml index a8c3e132..93db34f8 100644 --- a/.github/workflows/build-python-wheel.yml +++ b/.github/workflows/build-python-wheel.yml @@ -23,6 +23,12 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} + + + - name: Check Branch and Commit Hash + run: | + echo "Branch: ${{ steps.vars.outputs.branch }}" + echo "Sha: ${{ steps.vars.outputs.sha_short }}" - name: Setup Build Env run: | @@ -45,5 +51,5 @@ jobs: - name: Upload Artifacts uses: actions/upload-artifact@v2 with: - name: xircuits-wheel-${GITHUB_REF#refs/*/}-$(git rev-parse --short "$GITHUB_SHA") + name: xircuits-wheel-${GITHUB_REF#refs/*/}-${GITHUB_SHA} path: dist From 47f4872453a6fe2239ea0e1e32077c7bea5cf8a6 Mon Sep 17 00:00:00 2001 From: MFA-X-AI <68586800+MFA-X-AI@users.noreply.github.com> Date: Tue, 15 Feb 2022 22:34:42 +0700 Subject: [PATCH 03/16] 3rd attempt of getting the branch and commit hash right --- .github/workflows/build-python-wheel.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-python-wheel.yml b/.github/workflows/build-python-wheel.yml index 93db34f8..10a6a26d 100644 --- a/.github/workflows/build-python-wheel.yml +++ b/.github/workflows/build-python-wheel.yml @@ -51,5 +51,5 @@ jobs: - name: Upload Artifacts uses: actions/upload-artifact@v2 with: - name: xircuits-wheel-${GITHUB_REF#refs/*/}-${GITHUB_SHA} + name: "xircuits-wheel-${GITHUB_REF#refs/*/}-${GITHUB_SHA}" path: dist From 617c6218feace1fe2d22fa94be98d04b4dad31e9 Mon Sep 17 00:00:00 2001 From: MFA-X-AI <68586800+MFA-X-AI@users.noreply.github.com> Date: Tue, 15 Feb 2022 22:52:24 +0700 Subject: [PATCH 04/16] 4th attempt of getting the branch and commit hash right --- .github/workflows/build-python-wheel.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-python-wheel.yml b/.github/workflows/build-python-wheel.yml index 10a6a26d..710ca3da 100644 --- a/.github/workflows/build-python-wheel.yml +++ b/.github/workflows/build-python-wheel.yml @@ -25,10 +25,19 @@ jobs: python-version: ${{ matrix.python-version }} - - name: Check Branch and Commit Hash - run: | - echo "Branch: ${{ steps.vars.outputs.branch }}" - echo "Sha: ${{ steps.vars.outputs.sha_short }}" + - name: Get Branch + id: branch + run: echo "git_branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_BRANCH + + - name: Check Branch + run: echo "${{ env.branch }}" + + - name: Get Hash + id: hash + run: echo "git_hash=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_HASH + + - name: Check Hash + run: echo "${{ env.hash }}" - name: Setup Build Env run: | @@ -51,5 +60,5 @@ jobs: - name: Upload Artifacts uses: actions/upload-artifact@v2 with: - name: "xircuits-wheel-${GITHUB_REF#refs/*/}-${GITHUB_SHA}" + name: "xircuits-wheel-"${{ env.branch }}"-"${{ env.hash }}" path: dist From 8b7cdb3b6de0141e73f12772a74bc4f37f6f0185 Mon Sep 17 00:00:00 2001 From: MFA-X-AI <68586800+MFA-X-AI@users.noreply.github.com> Date: Tue, 15 Feb 2022 22:54:12 +0700 Subject: [PATCH 05/16] removed additional tag --- .github/workflows/build-python-wheel.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-python-wheel.yml b/.github/workflows/build-python-wheel.yml index 710ca3da..eb4e501c 100644 --- a/.github/workflows/build-python-wheel.yml +++ b/.github/workflows/build-python-wheel.yml @@ -60,5 +60,5 @@ jobs: - name: Upload Artifacts uses: actions/upload-artifact@v2 with: - name: "xircuits-wheel-"${{ env.branch }}"-"${{ env.hash }}" + name: xircuits-wheel-"${{ env.branch }}"-"${{ env.hash }}" path: dist From 96670a43c8103d81260bd07aad10a4b00fdfa8ea Mon Sep 17 00:00:00 2001 From: MFA-X-AI <68586800+MFA-X-AI@users.noreply.github.com> Date: Tue, 15 Feb 2022 23:01:36 +0700 Subject: [PATCH 06/16] 5th attempt of getting the branch and commit hash right --- .github/workflows/build-python-wheel.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-python-wheel.yml b/.github/workflows/build-python-wheel.yml index eb4e501c..5c826d4f 100644 --- a/.github/workflows/build-python-wheel.yml +++ b/.github/workflows/build-python-wheel.yml @@ -27,14 +27,15 @@ jobs: - name: Get Branch id: branch - run: echo "git_branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_BRANCH + run: echo "git_branch=${GITHUB_REF#refs/heads/}" + - name: Check Branch run: echo "${{ env.branch }}" - name: Get Hash id: hash - run: echo "git_hash=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_HASH + run: echo "git_hash=$(git rev-parse --short "$GITHUB_SHA")" - name: Check Hash run: echo "${{ env.hash }}" From 0776c69c4b33efdd77be155725bf2c4296445c4c Mon Sep 17 00:00:00 2001 From: MFA-X-AI <68586800+MFA-X-AI@users.noreply.github.com> Date: Tue, 15 Feb 2022 23:09:40 +0700 Subject: [PATCH 07/16] 6th attempt of getting the branch and commit hash right --- .github/workflows/build-python-wheel.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-python-wheel.yml b/.github/workflows/build-python-wheel.yml index 5c826d4f..d1029af4 100644 --- a/.github/workflows/build-python-wheel.yml +++ b/.github/workflows/build-python-wheel.yml @@ -61,5 +61,5 @@ jobs: - name: Upload Artifacts uses: actions/upload-artifact@v2 with: - name: xircuits-wheel-"${{ env.branch }}"-"${{ env.hash }}" + name: xircuits-wheel-${GITHUB_REF#refs/heads/}-$(git rev-parse --short "$GITHUB_SHA") path: dist From ebc27559ade305e035628a7e4ded1f5feb3c95ff Mon Sep 17 00:00:00 2001 From: MFA-X-AI <68586800+MFA-X-AI@users.noreply.github.com> Date: Tue, 15 Feb 2022 23:32:51 +0700 Subject: [PATCH 08/16] 7th attempt of getting the branch and commit hash right --- .github/workflows/build-python-wheel.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-python-wheel.yml b/.github/workflows/build-python-wheel.yml index d1029af4..044af35b 100644 --- a/.github/workflows/build-python-wheel.yml +++ b/.github/workflows/build-python-wheel.yml @@ -31,7 +31,10 @@ jobs: - name: Check Branch - run: echo "${{ env.branch }}" + run: echo "$GITHUB_REF_NAME" + + - name: Check Branch 2 + run: echo $GITHUB_REF_NAME - name: Get Hash id: hash @@ -39,6 +42,11 @@ jobs: - name: Check Hash run: echo "${{ env.hash }}" + + - name: Check Hash2 + env: + hash-short: $(git rev-parse --short "$GITHUB_SHA")" + run: echo "hash-short" - name: Setup Build Env run: | @@ -61,5 +69,5 @@ jobs: - name: Upload Artifacts uses: actions/upload-artifact@v2 with: - name: xircuits-wheel-${GITHUB_REF#refs/heads/}-$(git rev-parse --short "$GITHUB_SHA") + name: xircuits-wheel-${GITHUB_REF_NAME} path: dist From c6d04fe7242b06b8b8424e2be348ba3390d9491f Mon Sep 17 00:00:00 2001 From: MFA-X-AI <68586800+MFA-X-AI@users.noreply.github.com> Date: Tue, 15 Feb 2022 23:39:58 +0700 Subject: [PATCH 09/16] 8th attempt of getting the branch and commit hash right --- .github/workflows/build-python-wheel.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-python-wheel.yml b/.github/workflows/build-python-wheel.yml index 044af35b..5531b8ed 100644 --- a/.github/workflows/build-python-wheel.yml +++ b/.github/workflows/build-python-wheel.yml @@ -46,7 +46,11 @@ jobs: - name: Check Hash2 env: hash-short: $(git rev-parse --short "$GITHUB_SHA")" - run: echo "hash-short" + run: echo "$hash-short" + + - name: Get branch name + if: ${{ contains(github.ref, 'refs/tags/') }} + run: echo "::set-env name=BRANCH_NAME::${GITHUB_REF##*/}" - name: Setup Build Env run: | @@ -69,5 +73,5 @@ jobs: - name: Upload Artifacts uses: actions/upload-artifact@v2 with: - name: xircuits-wheel-${GITHUB_REF_NAME} + name: ${{ env.BRANCH_NAME }}-xircuits-artifact path: dist From 8a7fe0882cab22f506f7034be65957a2daf6790d Mon Sep 17 00:00:00 2001 From: MFA-X-AI <68586800+MFA-X-AI@users.noreply.github.com> Date: Tue, 15 Feb 2022 23:47:43 +0700 Subject: [PATCH 10/16] 9th attempt of getting the branch and commit hash right --- .github/workflows/build-python-wheel.yml | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build-python-wheel.yml b/.github/workflows/build-python-wheel.yml index 5531b8ed..2bfd99a3 100644 --- a/.github/workflows/build-python-wheel.yml +++ b/.github/workflows/build-python-wheel.yml @@ -25,31 +25,18 @@ jobs: python-version: ${{ matrix.python-version }} - - name: Get Branch - id: branch - run: echo "git_branch=${GITHUB_REF#refs/heads/}" - - - - name: Check Branch - run: echo "$GITHUB_REF_NAME" - - - name: Check Branch 2 - run: echo $GITHUB_REF_NAME + - name: Set Branch Name + run: | + echo "branch_name=$GITHUB_REF_NAME" >> $GITHUB_ENV - name: Get Hash id: hash - run: echo "git_hash=$(git rev-parse --short "$GITHUB_SHA")" + run: echo "git_hash=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_ENV - name: Check Hash run: echo "${{ env.hash }}" - - name: Check Hash2 - env: - hash-short: $(git rev-parse --short "$GITHUB_SHA")" - run: echo "$hash-short" - - name: Get branch name - if: ${{ contains(github.ref, 'refs/tags/') }} run: echo "::set-env name=BRANCH_NAME::${GITHUB_REF##*/}" - name: Setup Build Env From bb68ca59b8b9d28fce02f05cd2590355d6741279 Mon Sep 17 00:00:00 2001 From: MFA-X-AI <68586800+MFA-X-AI@users.noreply.github.com> Date: Tue, 15 Feb 2022 23:50:05 +0700 Subject: [PATCH 11/16] 10th attempt of getting the branch and commit hash right --- .github/workflows/build-python-wheel.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-python-wheel.yml b/.github/workflows/build-python-wheel.yml index 2bfd99a3..f621851e 100644 --- a/.github/workflows/build-python-wheel.yml +++ b/.github/workflows/build-python-wheel.yml @@ -34,11 +34,8 @@ jobs: run: echo "git_hash=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_ENV - name: Check Hash - run: echo "${{ env.hash }}" + run: echo "$env.git_hash" - - name: Get branch name - run: echo "::set-env name=BRANCH_NAME::${GITHUB_REF##*/}" - - name: Setup Build Env run: | curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash @@ -60,5 +57,5 @@ jobs: - name: Upload Artifacts uses: actions/upload-artifact@v2 with: - name: ${{ env.BRANCH_NAME }}-xircuits-artifact + name: ${{ env.branch_name }}-xircuits-artifact path: dist From 6ad1f2d056fbbf5a246cd310c8df69892820e166 Mon Sep 17 00:00:00 2001 From: MFA-X-AI <68586800+MFA-X-AI@users.noreply.github.com> Date: Wed, 16 Feb 2022 00:08:14 +0700 Subject: [PATCH 12/16] 11th attempt of getting the branch and commit hash right --- .github/workflows/build-python-wheel.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-python-wheel.yml b/.github/workflows/build-python-wheel.yml index f621851e..b865282e 100644 --- a/.github/workflows/build-python-wheel.yml +++ b/.github/workflows/build-python-wheel.yml @@ -29,6 +29,14 @@ jobs: run: | echo "branch_name=$GITHUB_REF_NAME" >> $GITHUB_ENV + - name: Set Branch Name 2 + run: | + echo "branch_name2=$GITHUB_REF" >> $GITHUB_ENV + + - name: Set Branch Name 3 + run: | + echo "branch_name3=$GITHUB_HEAD_REF" >> $GITHUB_ENV + - name: Get Hash id: hash run: echo "git_hash=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_ENV @@ -57,5 +65,5 @@ jobs: - name: Upload Artifacts uses: actions/upload-artifact@v2 with: - name: ${{ env.branch_name }}-xircuits-artifact + name: xircuits-wheel-${{ env.branch_name2 }}-${{ env.git_hash }} path: dist From 5d9f5d45ffa5e9e7fe3f4a4e92c7f8d9623b61c0 Mon Sep 17 00:00:00 2001 From: MFA-X-AI <68586800+MFA-X-AI@users.noreply.github.com> Date: Wed, 16 Feb 2022 00:10:32 +0700 Subject: [PATCH 13/16] fix indent --- .github/workflows/build-python-wheel.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-python-wheel.yml b/.github/workflows/build-python-wheel.yml index b865282e..d256c1d9 100644 --- a/.github/workflows/build-python-wheel.yml +++ b/.github/workflows/build-python-wheel.yml @@ -8,7 +8,6 @@ on: jobs: build: - runs-on: ubuntu-latest strategy: fail-fast: false @@ -29,11 +28,11 @@ jobs: run: | echo "branch_name=$GITHUB_REF_NAME" >> $GITHUB_ENV - - name: Set Branch Name 2 + - name: Set Branch Name 2 run: | echo "branch_name2=$GITHUB_REF" >> $GITHUB_ENV - - name: Set Branch Name 3 + - name: Set Branch Name 3 run: | echo "branch_name3=$GITHUB_HEAD_REF" >> $GITHUB_ENV From 9a66b0ef9fb01b968423f68c555e554d867c088a Mon Sep 17 00:00:00 2001 From: MFA-X-AI <68586800+MFA-X-AI@users.noreply.github.com> Date: Wed, 16 Feb 2022 00:16:11 +0700 Subject: [PATCH 14/16] 12th attempt of getting the branch and commit hash right --- .github/workflows/build-python-wheel.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-python-wheel.yml b/.github/workflows/build-python-wheel.yml index d256c1d9..4b09ef0e 100644 --- a/.github/workflows/build-python-wheel.yml +++ b/.github/workflows/build-python-wheel.yml @@ -36,6 +36,10 @@ jobs: run: | echo "branch_name3=$GITHUB_HEAD_REF" >> $GITHUB_ENV + - name: Set Branch Name 4 + run: | + echo "branch_name4=${GITHUB_REF##*/}" >> $GITHUB_ENV + - name: Get Hash id: hash run: echo "git_hash=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_ENV @@ -64,5 +68,5 @@ jobs: - name: Upload Artifacts uses: actions/upload-artifact@v2 with: - name: xircuits-wheel-${{ env.branch_name2 }}-${{ env.git_hash }} + name: xircuits-wheel-${{ env.branch_name4 }}-${{ env.git_hash }} path: dist From c6d2f7bac03186dc9ccf2e27a5b558c9ce163442 Mon Sep 17 00:00:00 2001 From: MFA-X-AI <68586800+MFA-X-AI@users.noreply.github.com> Date: Wed, 16 Feb 2022 00:17:35 +0700 Subject: [PATCH 15/16] 13th attempt of getting the branch and commit hash right --- .github/workflows/build-python-wheel.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-python-wheel.yml b/.github/workflows/build-python-wheel.yml index 4b09ef0e..504dde74 100644 --- a/.github/workflows/build-python-wheel.yml +++ b/.github/workflows/build-python-wheel.yml @@ -38,7 +38,7 @@ jobs: - name: Set Branch Name 4 run: | - echo "branch_name4=${GITHUB_REF##*/}" >> $GITHUB_ENV + echo "branch_name4=${GITHUB_HEAD_REF##*/}" >> $GITHUB_ENV - name: Get Hash id: hash From 60bbef74aa2fea3f8a9c75761041d41c6eb8baef Mon Sep 17 00:00:00 2001 From: MFA-X-AI <68586800+MFA-X-AI@users.noreply.github.com> Date: Wed, 16 Feb 2022 00:22:13 +0700 Subject: [PATCH 16/16] got the branch and commit hash right --- .github/workflows/build-python-wheel.yml | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build-python-wheel.yml b/.github/workflows/build-python-wheel.yml index 504dde74..5ad98cc5 100644 --- a/.github/workflows/build-python-wheel.yml +++ b/.github/workflows/build-python-wheel.yml @@ -23,22 +23,12 @@ jobs: with: python-version: ${{ matrix.python-version }} - - name: Set Branch Name run: | - echo "branch_name=$GITHUB_REF_NAME" >> $GITHUB_ENV - - - name: Set Branch Name 2 - run: | - echo "branch_name2=$GITHUB_REF" >> $GITHUB_ENV + echo "branch_name=${GITHUB_HEAD_REF##*/}" >> $GITHUB_ENV - - name: Set Branch Name 3 - run: | - echo "branch_name3=$GITHUB_HEAD_REF" >> $GITHUB_ENV - - - name: Set Branch Name 4 - run: | - echo "branch_name4=${GITHUB_HEAD_REF##*/}" >> $GITHUB_ENV + - name: Check Branch + run: echo "$env.branch_name" - name: Get Hash id: hash @@ -68,5 +58,5 @@ jobs: - name: Upload Artifacts uses: actions/upload-artifact@v2 with: - name: xircuits-wheel-${{ env.branch_name4 }}-${{ env.git_hash }} + name: xircuits-wheel-${{ env.branch_name }}-${{ env.git_hash }} path: dist