Skip to content

Commit

Permalink
Add a workflow to manually update pinned environments for PR (pypsa-m…
Browse files Browse the repository at this point in the history
…eets-earth#1250)

* Add a workflow to manually update pinned environments for PR

* Add a run condition to update the pinned envs for branches

* Remove a duplicating workflow
  • Loading branch information
ekatef authored Dec 21, 2024
1 parent 302f45a commit 5dfae1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/update-pinned-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ on:

jobs:
update-pinned-environment:
if: ${{ github.ref == 'refs/heads/main' }}
# the update is always needed for env changes in main and sometimes for other branches
if: ${{ github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' }}
name: Update pinned envs
runs-on: ${{ matrix.os }}-latest
strategy:
Expand Down

0 comments on commit 5dfae1c

Please sign in to comment.