Skip to content

role assingment

role assingment #34

Workflow file for this run

name: Continuous Integration
on:
push:
branches:
- 'feature/**'
- 'fix/**'
pull_request:
branches:
- main
types: [opened, synchronize, reopened]
permissions:
contents: write
pull-requests: read # Added for PR triggers
jobs:
generate-tag-version:
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-tag-version
build:
runs-on: ubuntu-latest
needs: generate-tag-version
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-tag-version.outputs.branch_name }}
new_version: ${{ needs.generate-tag-version.outputs.new_version }}
should_publish: ${{ needs.generate-tag-version.outputs.should_publish }}