-
Notifications
You must be signed in to change notification settings - Fork 212
26 lines (21 loc) · 897 Bytes
/
bug_bounty.yml
File metadata and controls
26 lines (21 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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")
LATEST_TAG_NAME=$(echo "$RELEASE_JSON" | jq -r '.tag_name')
RELEASE_EVENT_TAG_NAME=${{ github.event.release.tag_name }}
echo "IS_LATEST_RELEASE=${{$LATEST_TAG_NAME == $RELEASE_EVENT_TAG_NAME}}" >> "$GITHUB_ENV"
echo "Latest tag: $LATEST_TAG_NAME"
echo "Release event tag: $RELEASE_EVENT_TAG_NAME"
echo ${{$LATEST_TAG_NAME == $RELEASE_EVENT_TAG_NAME}}
echo "Is latest release: ${{ env.IS_LATEST_RELEASE }}"