Skip to content

Commit

Permalink
Fix workflow to update version numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
rukmal committed Sep 28, 2022
1 parent 1e6283c commit 53e3ffa
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
27 changes: 19 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
1 change: 1 addition & 0 deletions echo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.0.0

0 comments on commit 53e3ffa

Please sign in to comment.