From ed843a290b1033d277f00f4ddce9560226636cf5 Mon Sep 17 00:00:00 2001 From: Rukmal Weerawarana Date: Wed, 28 Sep 2022 11:37:21 +0530 Subject: [PATCH] Fix issue in release pipeline due to missing token --- .github/workflows/push.yml | 2 +- .github/workflows/release.yml | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 7459c32..bf5432c 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -1,4 +1,4 @@ -name: Global data service push workflow +name: Tests and GraphQL Client Generation env: REGISTRY: ghcr.io diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 39f6dee..b5016cf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,12 +19,8 @@ jobs: with: python-version: "3.10" # See: https://stackoverflow.com/questions/58177786/get-the-current-pushed-tag-in-github-actions - - name: Set env + - name: Get version number from git tag run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV - - name: Test - run: | - echo $RELEASE_VERSION - echo ${{ env.RELEASE_VERSION }} - name: Install toml-cli to modify toml file # See: https://pypi.org/project/toml-cli/ run: | @@ -74,6 +70,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3 + with: + ref: main - name: Build distribution archive of client package uses: ballerina-platform/ballerina-action@394eb82cc07e020948fee8d1474143ae393147f4 with: @@ -86,3 +84,4 @@ jobs: args: push env: WORKING_DIR: client + BALLERINA_CENTRAL_ACCESS_TOKEN: ${{ secrets.BALLERINA_CENTRAL_ACCESS_TOKEN }}