Skip to content

[FEATURE] Duplicate Check #237

[FEATURE] Duplicate Check

[FEATURE] Duplicate Check #237

Workflow file for this run

# MIT License
# Copyright (c) 2024 Zackary Frazier
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
name: Validate Deployment
on:
pull_request:
branches:
- main
- release
paths:
- "**/main/default/**"
env:
AWS_SECRET: ${{ secrets.AWS_SECRET }}
AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
AWS_SAVE_DEPLOYMENT_FUNC: ${{ secrets.AWS_SAVE_DEPLOYMENT_FUNC }}
SF_AUTH_URL: ${{ secrets.SF_AUTH_URL }}
REPOSITORY: ${{ github.repository }}
PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number }}
jobs:
validate-pull-request:
permissions: write-all
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.labels.*.name, 'dont deploy') }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create Auth File
run: scripts/bash/create-sfdx-auth-file.sh
- uses: ZackFra/sf-delta-validate@master
with:
branch: origin/main
auth-file: authFile.json
- name: Save To Database
run: scripts/bash/save-deployment.sh