Files
plane/.github/workflows/slash-command-dispatch.yml
T
pratapalakshmiandGitHub e8e284ae8d chore: cosmetic changes to deploy-pr and auto cleanup (#5673)
* feat: add cleanup workflow for deploy previews

- Introduced a new GitHub Actions workflow to automate the cleanup of deploy previews for merged or closed pull requests.
- The workflow includes steps to configure AWS credentials, update kubeconfig, verify access, and uninstall Helm releases associated with the deploy previews.
- Added logic to remove persistent volumes and namespaces related to the cleaned-up releases.

* refactor: update cleanup workflow step names for clarity

- Renamed the "Cleanup Deploy Previews" step to "Cleanup merged or closed PR deployments" for better understanding of its purpose.
- Updated the echo message to reflect the new step name, enhancing clarity in the workflow output.

* chore: update deploy workflow to use new command and enhance image tagging

- Updated the image tagging logic to include the repository type (commercial or cloud) based on the deployment type, ensuring accurate tagging for Docker images.
- Adjusted the deployment host naming convention to incorporate the pull request number for better identification.

* chore: enhance deploy-pr workflow with environment variable handling and remove goldenset files

- Added instructions for releasing the preview helm chart before requesting new environment variables.
- Updated the deploy-pr workflow to accept a custom helm repository URL based on the deployment type.
- Removed outdated goldenset configuration files for cloud and enterprise deployments to streamline the project structure.
2026-02-02 13:52:49 +05:30

24 lines
650 B
YAML

name: Slash Command Dispatch
on:
issue_comment:
types: [created]
jobs:
slashCommandDispatch:
runs-on: ubuntu-latest
# Only run if comment is on a PR and contains the slash command
if: |
github.event.issue.pull_request != null &&
(startsWith(github.event.comment.body, '/deploy'))
permissions:
contents: read
pull-requests: write
issues: write
steps:
- name: Slash Command Dispatch
uses: peter-evans/slash-command-dispatch@v5
with:
token: ${{ secrets.PAT }}
permission: write
issue-type: pull-request
commands: |
deploy