Skip to content

BUILD-8099 use ci-github-actions/promote #35

BUILD-8099 use ci-github-actions/promote

BUILD-8099 use ci-github-actions/promote #35

Workflow file for this run

name: Build
on:
push:
branches:
- master
- branch-*
pull_request:
merge_group:
workflow_dispatch:
#env:
# DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
jobs:
build:
# outputs:
# PROJECT_VERSION: ${{ steps.build.outputs.PROJECT_VERSION }}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch }}
runs-on: ubuntu-24.04-large
name: Build
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: SonarSource/ci-github-actions/get-build-number@master # dogfood
- uses: SonarSource/ci-github-actions/build-poetry@feat/jcarsique/BUILD-8099-promotePoetry # TODO WIP BUILD-8099
# id: build
promote:
needs:
- build
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch }}
runs-on: ubuntu-24.04-large
name: Promote
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: jdx/mise-action@5cb1df66ed5e1fb3c670ea0b62fd17a76979826a # v2.3.1
with:
cache_save: false
- name: Restore local Poetry cache
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ${{ github.workspace }}/.cache/pypoetry
key: poetry-${{ runner.os }}-${{ hashFiles('poetry.lock') }}
restore-keys: poetry-${{ runner.os }}-
- uses: SonarSource/ci-github-actions/get-build-number@feat/jcarsique/BUILD-8099-promotePoetry # TODO WIP BUILD-8099
- uses: SonarSource/ci-github-actions/promote-poetry@feat/jcarsique/BUILD-8099-promotePoetry # TODO WIP BUILD-8099
# with:
# project-version: ${{ needs.build.outputs.PROJECT_VERSION }}