Skip to content

Commit

Permalink
Fix drainpipe-dev workflow when run as a tag (#531)
Browse files Browse the repository at this point in the history
* Should always checkout main from drainpipe-dev instead of ref_name since it may not exist when run as a tag.

* Adjust repo lockdown schedule to only once a week.

* Use ref_name if it is available but fallback to using main

* Update DrainpipeDev.yml
  • Loading branch information
davereid authored Apr 17, 2024
1 parent 2badae3 commit 04484c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/DrainpipeDev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
git branch -m ${{ github.ref_name }}
git remote add origin [email protected]:Lullabot/drainpipe-dev.git
git fetch origin
git reset --mixed origin/${{ github.ref_name }}
git reset --mixed origin/${{ github.ref_name }} || git reset --mixed origin/main
git config user.name "Lullabot-Drainpipe[bot]"
git config user.email "157769597+Lullabot-Drainpipe[bot]@users.noreply.github.com"
Expand Down
2 changes: 1 addition & 1 deletion drainpipe-dev/.github/workflows/repo-lockdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
pull_request_target:
types: opened
schedule:
- cron: '0 * * * *'
- cron: '0 0 * * 1'

permissions:
issues: write
Expand Down

0 comments on commit 04484c9

Please sign in to comment.