Skip to content

Refactor actions so they are easier to reuse for manual workflow #3

Refactor actions so they are easier to reuse for manual workflow

Refactor actions so they are easier to reuse for manual workflow #3

name: Deploy existing version
on:
workflow_dispatch:
inputs:
version:
description: 'GIT ref (commit SHA or tag, e.g. v1.0.8)'
type: string
# Required to create OIDC/JWT token required to use shared actions
permissions:
contents: read
pull-requests: write
id-token: write
jobs:
verify:
name: Verify ${{ inputs.version }} exists
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.version }}
deploy:
uses: grafana/explore-profiles/.github/workflows/deploy.yml

Check failure on line 25 in .github/workflows/deploy-existing-version.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy-existing-version.yml

Invalid workflow file

invalid value workflow reference: no version specified
needs: [verify]
secrets: inherit
strategy:
matrix:
environment: [dev, ops, prod]
with:
version: ${{ inputs.version }}
environment: ${{ matrix.environment }}