Skip to content

Commit

Permalink
Update upstream_sync.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
karan-batavia authored Nov 21, 2024
1 parent 5e3e63c commit 31111b8
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/upstream_sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,17 @@ jobs:

- name: Get latest upstream release
run: |
echo "RAW_RELEASE_TAG=$(curl -L \
-H "Accept: application/vnd.github+json" \
https://api.github.com/repos/joernio/joern/releases/latest | jq -r .name)" >> $GITHUB_ENV
echo "LATEST_TAG=$(${{ env.RAW_RELEASE_TAG }} | sed 's/[v]//g' | sed 's/[.]/-/g' )" >> $GITHUB_ENV
# Fetch the latest release tag from the GitHub API
RAW_RELEASE_TAG=$(curl -L \
-H "Accept: application/vnd.github+json" \
https://api.github.com/repos/joernio/joern/releases/latest | jq -r .name)
# Process the tag to create the desired format
LATEST_TAG=$(echo "$RAW_RELEASE_TAG" | sed 's/^v//' | sed 's/\./-/g')
# Export to GitHub environment variables
echo "RAW_RELEASE_TAG=$RAW_RELEASE_TAG" >> $GITHUB_ENV
echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV
- name: Create tag branch and merge upstream
run: |
Expand Down

0 comments on commit 31111b8

Please sign in to comment.