Skip to content

test12

test12 #20

Workflow file for this run

name: SalesforceCommerceCloud/pwa-kit/bug_bounty
on:
push:
branches:
- 'mrt-test-ci-deploy'
jobs:
deploy-bug-bounty:
runs-on: ubuntu-latest
steps:
- name: Check if latest release
id: release
run: |
RELEASE_JSON=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
"https://api.github.com/repos/${{ github.repository }}/releases/latest")
TAG_NAME=$(echo "$RELEASE_JSON" | jq -r '.tag_name')
echo "IS_LATEST_RELEASE=$(echo '$TAG_NAME == ${{ github.event.release.tag_name}}' )" >> "$GITHUB_ENV"
echo "Latest tag: $TAG_NAME"
echo "Is latest release: ${{ env.IS_LATEST_RELEASE }}"