Skip to content

Commit

Permalink
Merge pull request #226 from shutter-network/fix/docker-restart
Browse files Browse the repository at this point in the history
fix/staging deployment
  • Loading branch information
blockchainluffy authored Dec 6, 2024
2 parents fccdf40 + 5372cbe commit c445802
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,15 @@ jobs:
# Branch Name Validation for Pull Requests
validate_branch_name:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Validate branch name
run: |
BRANCH_NAME="${{ github.head_ref }}"
if [ "${{ github.event_name }}" == "pull_request" ]; then
BRANCH_NAME=${{ github.head_ref }}
else
BRANCH_NAME=${{ github.ref_name }}
fi
echo "Validating branch name: $BRANCH_NAME"
# Allow 'staging' and 'main' branches
Expand Down

0 comments on commit c445802

Please sign in to comment.