Skip to content

Commit

Permalink
Check differently if it is a pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
ptormene committed Mar 11, 2024
1 parent e598060 commit ebc3dc2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/demos_ltr_latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
demos:
runs-on: ubuntu-latest
env:
GITHUB_IS_PULL_REQUEST: ${{ github.event_name == 'pull_request' }}
GITHUB_PULL_REQUEST: ${{ github.event.number }}
GITHUB_DEF_BR: ${{ github.event.repository.default_branch }}
GITHUB_REF: ${{ github.ref }}
Expand Down Expand Up @@ -45,7 +44,7 @@ jobs:
# GITHUB_DEF_BR: ${{ github.event.repository.default_branch }}
# GITHUB_REF: ${{ github.ref }}
run: |
if [ "$GITHUB_IS_PULL_REQUEST" ]
if ${{ github.event_name == 'pull_request' }}
then
echo "It is a pull request; use the corresponding branch: ${GITHUB_HD_REF}"
python install.py devel --version ${GITHUB_HD_REF}
Expand All @@ -71,7 +70,7 @@ jobs:
oq dump /tmp/oqdata.zip
oq restore /tmp/oqdata.zip /tmp/oqdata
helpers/zipdemos.sh $(pwd)/demos
if [ "$GITHUB_IS_PULL_REQUEST" ]
if ${{ github.event_name == 'pull_request' }}
then
echo "It is a pull request; use the corresponding branch: ${GITHUB_HD_REF}"
GITHUB_BR=${GITHUB_HD_REF}
Expand Down

0 comments on commit ebc3dc2

Please sign in to comment.