Skip to content

Commit

Permalink
Fix release action execution condition
Browse files Browse the repository at this point in the history
  • Loading branch information
melissawm committed Sep 26, 2024
1 parent 5443880 commit 369746c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,15 @@ jobs:
# unix_listener: cannot bind to path /tmp/ssh-auth.sock: Address already in use
# See https://github.com/peaceiris/actions-gh-pages/issues/909
- name: Reset ssh agent
if: (github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.target_directory != 'dev'))
run: killall ssh-agent

# Because the actions-gh-pages triggers a pages deployment, it can be some
# time before the repo is updated. We need to wait for the deployment to
# complete before we can create a second deployment, or we will have a git
# conflict. The 5m sleep is completely arbitrary.
- name: Wait for first deployment
if: (github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.target_directory != 'dev'))
run: sleep 5m

- name: Deploy Release Docs
Expand Down

0 comments on commit 369746c

Please sign in to comment.