From 53e3ffacd606522b44a3222c269258cd622703f6 Mon Sep 17 00:00:00 2001 From: Rukmal Weerawarana Date: Wed, 28 Sep 2022 10:20:17 +0530 Subject: [PATCH] Fix workflow to update version numbers --- .github/workflows/release.yml | 27 +++++++++++++++++++-------- README.md | 2 +- echo | 1 + 3 files changed, 21 insertions(+), 9 deletions(-) create mode 100644 echo diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 417e9d4..f85e096 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,14 +12,25 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3 - - name: Extract version number from tag - id: vars - # See: https://stackoverflow.com/questions/58177786/get-the-current-pushed-tag-in-github-actions - run: echo ::set-output name=tag::${GITHUB_REF#refs/*/} - - name: Test output vars - env: - RELEASE_VERSION: ${{ steps.meta.vars.outputs.tag }} - run: echo $RELEASE_VERSION + - name: Setup Python 3.10 + uses: actions/setup-python@v4 + with: + python-version: "3.10" + # See: https://stackoverflow.com/questions/58177786/get-the-current-pushed-tag-in-github-actions + - name: Set env + run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV + - name: Test + run: | + echo $RELEASE_VERSION + echo ${{ env.RELEASE_VERSION }} + - name: Install tom-cli to modify toml file + run: | + python -m pip install toml-cli + - name: Update version in Ballerina.toml files + run: | + OLD_VERSION=$(toml get --toml-path api/Ballerina.toml package.version) + echo "Old package version: ${OLD_VERSION}" + echo "New package veresion: ${{ env.RELEASE_VERSION }}" # - name: Update API version in package files # uses: ciiiii/toml-editor@1.0.0 # with: diff --git a/README.md b/README.md index 4c202a3..34b524e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ## Avinya Foundation Global Data Service -The Avinya Foundation's Global Data Service underlies the Avinya Foundation technology stack, and provides a universal interface to data across all applications in the organization. +The Avinya Foundation's Global Data Service underlies the Avinya Foundation technology stack, and provides a universal interface to foundation data to all applications in the organization. ## Component Documentation diff --git a/echo b/echo new file mode 100644 index 0000000..3eefcb9 --- /dev/null +++ b/echo @@ -0,0 +1 @@ +1.0.0