Skip to content

Release Prod

Release Prod #1

Workflow file for this run

name: Release Prod
on:
workflow_run:
workflows: ["Release"]
types:
- completed
workflow_dispatch:
permissions:
id-token: write
contents: write
jobs:
on_release:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.set_version.outputs.version }}
steps:
- name: Checkout with full history
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get version from selected ref or latest tag
id: set_version
run: |
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
VERSION="${{ github.ref_name }}"
echo "Using manually selected ref: $VERSION"
else
git fetch --tags
VERSION=$(git describe --tags "$(git rev-list --tags --max-count=1)")
echo "Detected latest tag from workflow_run: $VERSION"
fi
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
prod:
uses: ./.github/workflows/deploy.yml

Check failure on line 39 in .github/workflows/release_prod.yml

View workflow run for this annotation

GitHub Actions / Release Prod

Invalid workflow file

The workflow is not valid. .github/workflows/release_prod.yml (Line: 39, Col: 11): Input infra_version is required, but not provided while calling. .github/workflows/release_prod.yml (Line: 39, Col: 11): Input lambda_bucket is required, but not provided while calling.
needs: on_release
secrets: inherit
with:
environment: prod
version: ${{ needs.on_release.outputs.version }}