Skip to content

fix run of reusable deploy #8

fix run of reusable deploy

fix run of reusable deploy #8

name: Release service
on:
workflow_dispatch:
inputs:
service_name:
description: 'Service name'
required: true
type: choice
options:
- a
- b
automatic_deploy_to_dev:
description: "Automatically deploy this release to DEV environment"
type: boolean
workflow_call:
inputs:
service_name:
required: true
type: string
automatic_deploy_to_dev:
type: boolean
jobs:
release:
runs-on: ubuntu-latest
defaults:
run:
working-directory: services/${{ inputs.service_name }}/
outputs:
new_tag: ${{ steps.tag_image.outputs.next_tag }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Build docker image
run: make build
- name: Tag the docker image
id: tag_image
run: PRERELEASE=${{ github.event_name == 'workflow_dispatch' }} make release
- uses: thejeff77/[email protected]
with:
tag: ${{ steps.tag_image.outputs.next_tag }}
message: '"${{ steps.tag_image.outputs.next_tag }}: PR #${{ github.event.pull_request.number }} - ${{ github.event.pull_request.title }}"'
- name: Create Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.tag_image.outputs.next_tag }}
generate_release_notes: true
prerelease: ${{ github.event_name == 'workflow_dispatch' }}
automatic_deploy:
uses: .github/workflows/deploy.yaml

Check failure on line 62 in .github/workflows/_service_release.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/_service_release.yaml

Invalid workflow file

invalid value workflow reference: no version specified
if: ${{ inputs.automatic_deploy_to_dev == true }}
with:
checkout_ref: ${{ needs.release.outputs.next_tag }}
service_name: ${{ inputs.service_name }}
environment: dev