Skip to content

secrets?

secrets? #8

name: Github Release Created

Check failure on line 1 in .github/workflows/release_created.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/release_created.yaml

Invalid workflow file

(Line: 69, Col: 9): Unexpected value 'secrets'
on:
release:
types: ["published"] # Inherits all input defaults
workflow_dispatch:
inputs:
release_tag:
description: "Release tag to simulate (e.g., v1.0.0)"
required: true
type: string
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
deploy-main:
name: Deploy changes to main in nonprod AWS Account
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Deploy Nonprod Environment
env:
APP_CLIENT_ID: ${{ secrets.APP_CLIENT_ID }}
APP_PEM_FILE: ${{ secrets.APP_PEM_FILE }}
run: |
bash .github/scripts/dispatch_internal_repo_workflow.sh \
--releaseVersion "${{ inputs.release_tag }}" \
--targetWorkflow "dispatch-deploy-static-notify-supplier-api-env.yaml" \
--targetEnvironment "main" \
--targetAccountGroup "nhs-notify-supplier-api-nonprod" \
--targetComponent "api" \
--terraformAction "apply"
deploy-proxy:
name: "Deploy proxy"
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
id-token: write
contents: read
actions: read
env:
PROXYGEN_API_NAME: nhs-notify-supplier
APP_CLIENT_ID: ${{ secrets.APP_CLIENT_ID }}
APP_PEM_FILE: ${{ secrets.APP_PEM_FILE }}
steps:
- name: "Checkout code"
uses: actions/checkout@v5
- name: "Build proxies"
uses: ./.github/actions/build-proxies
with:
environment: "main"
apimEnv: "int"
runId: "${{ github.run_id }}"
releaseVersion: "${{ inputs.release_tag }}"
isRelease: true
secrets: inherit