Skip to content

Commit

Permalink
ci: fetch latest tag
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepakBomjan committed Aug 17, 2023
1 parent c0d82dc commit 3737fb0
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/test-relay.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,23 @@ jobs:
# ./gradlew clean build
# ./gradlew optimizedJar

- name: 'Get Previous tag'
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
with:
fallback: 1.0.0 # Optional fallback tag to use when no tag can be found
- name: Fetch Latest IBC-Integration Tag
id: fetch_ibc_tag
run: |
TAG_IBC=$(curl -s "https://api.github.com/repos/icon-project/IBC-Integration/tags" | jq -r '.[0].name')
echo "TAG_IBC=$TAG_IBC" >> $GITHUB_ENV
- name: Fetch Latest XCALL Tag
id: fetch_xcall_tag
run: |
TAG_XCALL=$(curl -s "https://api.github.com/repos/icon-project/xCalll/tags" | jq -r '.[0].name')
echo "TAG_XCALL=$TAG_XCALL" >> $GITHUB_ENV
- name: Download Javascore Contracts
uses: robinraju/[email protected]
with:
repository: "icon-project/IBC-Integration"
tag: "${{ steps.previoustag.outputs.tag }}"
tag: "$TAG_IBC"
# latest: true
fileName: "*"
out-file-path: "${GITHUB_WORKSPACE}/.github/scripts/IBC-Integration/artifacts/icon"
Expand Down

0 comments on commit 3737fb0

Please sign in to comment.