Skip to content

Instantly share code, notes, and snippets.

@KyMidd

KyMidd/asdf.yaml Secret

Created February 20, 2023 02:30
Show Gist options
  • Select an option

  • Save KyMidd/d109d39387ecd76e8aa97375b1c9d4c5 to your computer and use it in GitHub Desktop.

Select an option

Save KyMidd/d109d39387ecd76e8aa97375b1c9d4c5 to your computer and use it in GitHub Desktop.
- name: Prep
run: |
# Checkout branch
git checkout -q ${{ github.event.pull_request.head.ref }}
# Set variables
BASE_BRANCH=${{ github.event.pull_request.base.ref }}
# Write BASE_BRANCH to GITHUB_ENV so commit checker can use
echo "BASE_BRANCH=$BASE_BRANCH" | tee -a $GITHUB_ENV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment