eventespresso / actions

Centralized repository for all of Event Espresso's GitHub Actions used in our CI/CD pipelines
GNU Affero General Public License v3.0
2 stars 6 forks source link

Action E2E Tests Fails to Obtain Latest Commit Sha #46

Closed alexkuc closed 11 months ago

alexkuc commented 11 months ago

https://github.com/eventespresso/barista/actions/caches

image

image

image

Need to investigate and fix why this happens

alexkuc commented 11 months ago

Will need to update workflow.yml file:

run: |
  if [ ! -z "${HEAD_REF}" ]
  then
    echo "Found branch name in github.event.pull_request.head.ref: $HEAD_RED"
    echo branch="$HEAD_REF" >> $GITHUB_OUTPUT
  else
    branch=$(gh pr view $PR --repo $REPO --json headRefName --jq '.headRefName')
    echo "Found branch using gh cli: $branch"
    echo branch="$branch" >> $GITHUB_OUTPUT
  fi