Skip to content

restore custom "not found" Exception messages. #249

restore custom "not found" Exception messages.

restore custom "not found" Exception messages. #249

Workflow file for this run

name: PullPreview
on:
pull_request:
types: [ labeled, unlabeled, synchronize, closed, reopened ]
jobs:
prepare-amigor-env:
name: Prepare Amigor .env
runs-on: ubuntu-latest
steps:
- name: Checkout Transmorpher repo
# https://github.com/actions/checkout
uses: actions/checkout@v4
with:
sparse-checkout: |
.env.amigor
# https://git-scm.com/docs/git-sparse-checkout#_internalscone_mode_handling
sparse-checkout-cone-mode: false
- run: echo "TRANSMORPHER_AUTH_TOKEN=\"${{ secrets.PULLPREVIEW_SANCTUM_AUTH_TOKEN }}\"" >> .env.amigor
- name: Upload Amigor .env file
# https://github.com/actions/upload-artifact
uses: actions/upload-artifact@v4
with:
name: amigor-env
path: |
.env.amigor
deploy-staging-environment:
needs: prepare-amigor-env
permissions:
contents: read # to fetch code (actions/checkout)
deployments: write # to delete deployments
pull-requests: write # to remove labels
statuses: write # to create commit status
name: Deploy PullPreview staging environment
# https://github.com/cybex-gmbh/github-workflows/blob/main/.github/workflows/pullpreview.yml
uses: cybex-gmbh/github-workflows/.github/workflows/pullpreview.yml@main
with:
PULLPREVIEW_ADMINS: jheusinger, gael-connan-cybex, holyfabi, lupinitylabs, mszulik
INSTANCE_TYPE: large
ARTIFACT_NAME: amigor-env
secrets:
ENV_VARS: |
APP_KEY="${{ secrets.PULLPREVIEW_APP_KEY }}"
SEED_USER_NAME="${{ secrets.PULLPREVIEW_USER_NAME }}"
SEED_USER_EMAIL="${{ secrets.PULLPREVIEW_USER_EMAIL }}"
TRANSMORPHER_SIGNING_KEYPAIR="${{ secrets.PULLPREVIEW_SODIUM_KEYPAIR }}"
TRANSMORPHER_AUTH_TOKEN_HASH="${{ secrets.PULLPREVIEW_SANCTUM_AUTH_TOKEN_HASH }}"
PULLPREVIEW_AWS_ACCESS_KEY_ID: ${{ secrets.PULLPREVIEW_AWS_ACCESS_KEY_ID }}
PULLPREVIEW_AWS_SECRET_ACCESS_KEY: ${{ secrets.PULLPREVIEW_AWS_SECRET_ACCESS_KEY }}
PULLPREVIEW_BASIC_AUTH: ${{ secrets.PULLPREVIEW_BASIC_AUTH }}