Skip to content

Merge pull request #220 from Evilazaro:feature/reusableCIWorkflow #31

Merge pull request #220 from Evilazaro:feature/reusableCIWorkflow

Merge pull request #220 from Evilazaro:feature/reusableCIWorkflow #31

Workflow file for this run

name: Continuous Integration
on:
push:
branches:
- main
- 'feature/**'
- 'fix/**'
permissions:
contents: write
pull-requests: read # Added for PR triggers
jobs:
generate-release:
runs-on: ubuntu-latest
outputs:
new_version: ${{ steps.release.outputs.new_version }}
release_type: ${{ steps.release.outputs.release_type }}
previous_tag: ${{ steps.release.outputs.previous_tag }}
should_release: ${{ steps.release.outputs.should_release }}
should_publish: ${{ steps.release.outputs.should_publish }}
branch_name: ${{ steps.release.outputs.branch_name }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
- name: Generate Release
id: release
uses: ./.github/actions/ci/generate-release
build:
runs-on: ubuntu-latest
needs: generate-release
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
- name: Build Bicep Code
id: build
uses: ./.github/actions/ci/bicep-standard-ci
with:
branch_name: ${{ needs.generate-release.outputs.branch_name }}
new_version: ${{ needs.generate-release.outputs.new_version }}
should_publish: ${{ needs.generate-release.outputs.should_publish }}