Refactor actions so they are easier to reuse for manual workflow #3
Workflow file for this run
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
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 | ||
needs: [verify] | ||
secrets: inherit | ||
strategy: | ||
matrix: | ||
environment: [dev, ops, prod] | ||
with: | ||
version: ${{ inputs.version }} | ||
environment: ${{ matrix.environment }} |