Skip to content

Commit

Permalink
simplify (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyqa authored Dec 14, 2022
1 parent 24464a4 commit 64e1432
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions .github/actions/release_to_prod/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,12 @@ runs:
using: "composite"
steps:
- name: print out stuff
# on pr
# echo "${{github.ref}}" -> refs/pull/7/merge
# echo "${{github.head_ref}}" -> jblock/gh-debug-1 # but this is only available on `pull_request`, not release
# echo "${{github.ref_name}}" -> 7/merge
# git rev-parse --abbrev-ref HEAD -> HEAD
run: |
echo "${{github.event.release.target_commitish}}"
echo "${{ toJson(github) }}"
shell: bash

- name: Do some release stuff for main
if: github.event.target_commitish == 'main'
if: github.event.release.target_commitish == 'main'
run: |
echo "this is the release script for main"
shell: bash


- name: Do some release stuff for a hotfix
if: contains(github.event.release.target_commitish, 'hotfix') == true
run: |
echo "this is the release script for a HOTFIX"
shell: bash

- name: Warn about other branches
if: github.event.release.target_commitish != 'main'
run: |
echo "Can only release main or hotfix"
shell: bash

0 comments on commit 64e1432

Please sign in to comment.