Hide Enso devtools in Prod for users outside of enso team #1114
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is not auto-generated. Feel free to edit it. | |
name: ✨ Engine | |
on: | |
push: | |
branches: | |
- develop | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-engine-pull-request | |
cancel-in-progress: ${{ github.ref != 'refs/heads/develop' }} | |
permissions: | |
checks: write | |
jobs: | |
engine-changed-files: | |
name: 🔍 Files Changed | |
uses: ./.github/workflows/engine-changed-files.yml | |
secrets: inherit | |
engine-checks: | |
name: ⚙️ Checks | |
uses: ./.github/workflows/engine-checks.yml | |
needs: [engine-changed-files] | |
if: needs.engine-changed-files.outputs.any_changed == 'true' || github.ref == 'refs/heads/develop' | |
secrets: inherit | |
engine-checks-optional: | |
name: ⚙️ Checks (Optional) | |
uses: ./.github/workflows/engine-checks-optional.yml | |
needs: [engine-changed-files] | |
if: needs.engine-changed-files.outputs.any_changed == 'true' || github.ref == 'refs/heads/develop' | |
secrets: inherit | |
required-checks: | |
name: Engine Required Checks | |
runs-on: ubuntu-latest | |
needs: [engine-checks] | |
if: always() | |
steps: | |
- name: Checks Summary | |
run: | | |
echo "Engine Checks: ${{ needs.engine-checks.result }}" | |
if [[ "${{ needs.engine-checks.result }}" == "failure" ]]; then | |
exit 1 | |
fi | |
echo "Success!" |