Skip to content

Commit

Permalink
Move github ref reset inside conda-lock job
Browse files Browse the repository at this point in the history
  • Loading branch information
zaneselvans committed Nov 6, 2023
1 parent 425ac73 commit c857aa4
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/update-lockfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,17 @@ env:
# - pull_request: Base branch of the PR.

jobs:
set-github-ref:
update-conda-lockfile:
runs-on: ubuntu-latest
if: ${{ (github.event_name == 'schedule') }}
defaults:
run:
shell: bash -l {0}
steps:
- name: Set GitHub Ref
- name: Set GitHub ref if running on schedule
if: ${{ (github.event_name == 'schedule') }}
run: |
echo "This action was triggered by a schedule. Running on dev."
echo "GITHUB_REF=dev" >> $GITHUB_ENV
update-conda-lockfile:
needs: set-github-ref
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.PUDL_BOT_PAT }}
Expand Down

0 comments on commit c857aa4

Please sign in to comment.