Skip to content

Commit

Permalink
added the ability to detect branch changes in the deployment additions
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Jun 4, 2023
1 parent 7733371 commit d00f2ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/add-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Add a new Deployment
on:
pull_request:
branches: [main]
types: [opened, reopened]
types: [opened, reopened, edited]
jobs:
deploy:
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/remove-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ name: Remove a Deployment

on:
pull_request:
types: [closed]
types: [closed, edited]
jobs:
deploy:
if: github.event.pull_request.action != edited || github.event.changes.base.ref.from != 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down

0 comments on commit d00f2ae

Please sign in to comment.