Bump prettier from 2.8.8 to 3.3.3 #506
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 runs against a pre-configured project and environment | |
# containing some configuration and secrets that are named | |
# CTTEST_* and cttest.* | |
# | |
name: 'demo' | |
on: | |
pull_request: {} | |
push: | |
branches: | |
- 'release/*' | |
tags: | |
- 'v*' | |
jobs: | |
secrets-gate: | |
runs-on: ubuntu-latest | |
outputs: | |
ok: ${{ steps.check-secrets.outputs.ok }} | |
steps: | |
- name: check for secrets needed to run demo | |
id: check-secrets | |
run: | | |
if [ ! -z "${{ secrets.CLOUDTRUTH_API_KEY }}" ]; then | |
echo "ok=true" >>$GITHUB_OUTPUT | |
fi | |
demo: | |
needs: | |
- secrets-gate | |
if: ${{ needs.secrets-gate.outputs.ok == 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: cloudtruth/configure-action@v2 | |
with: | |
apikey: "${{ secrets.CLOUDTRUTH_API_KEY }}" | |
project: "${{ github.repository }}" | |
environment: staging | |
- name: demonstrate secrets redaction | |
run: | | |
echo CTTEST_NOT_A_SECRET=${CTTEST_NOT_A_SECRET} | |
echo CTTEST_TOTALLY_A_SECRET=${CTTEST_TOTALLY_A_SECRET} | |
[ ! -z "${CTTEST_NOT_A_SECRET}" ] || exit 1 | |
[ ! -z "${CTTEST_TOTALLY_A_SECRET}" ] || exit 1 | |
- name: dump the environment | |
run: | | |
printenv | sort |