From 535168e83d25e7a961c7341255a953d7f0a7256a Mon Sep 17 00:00:00 2001 From: nvodenicharski99 Date: Wed, 29 Mar 2023 09:47:46 +0300 Subject: [PATCH] use manual checkout in release.sh Signed-off-by: nvodenicharski99 --- .github/workflows/release.yml | 34 +++++----------------------------- 1 file changed, 5 insertions(+), 29 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7cf4b8aac..304ac5a2f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,38 +38,14 @@ jobs: exit 2 fi - # - name: Validate branch - # run: | - # if ! [[ "${{ github.ref }}" = "refs/heads/main" ]]; then - # echo "Releases can be created only from 'main' branch!" - # exit 3 - # fi - - - name: Checkout code - uses: actions/checkout@v3 - with: - username: 'svc-wwcoe-ci-admin' - token: $ {{ secrets.GH_TOKEN }} - - - name: Setup Maven Action - uses: s4u/setup-maven-action@v1.7.0 - with: - java-version: "8" - java-distribution: "corretto" - maven-version: "3.8.7" - - - name: Install xmllint - run: sudo apt-get install libxml2-utils - - - name: Use Node.js '14.17.1' - uses: actions/setup-node@v3 - with: - node-version: '14.17.1' - - - name: Set Git configs + - name: Checkout run: | + git clone https://svc-wwcoe-ci-admin:${{ secrets.GH_TOKEN }}@github.com/vmware/build-tools-for-vmware-aria.git . git config --global user.email "svc-wwcoe-ci-admin@vmware.com" git config --global user.name "WWCoE CI admin" + - name: Install xmllint + run: sudo apt-get install libxml2-utils + - name: Run release script run: ./release.sh -v ${{ inputs.version }}