Skip to content

chore(deps): bump github/codeql-action from 4.36.1 to 4.36.2 (#174) #31

chore(deps): bump github/codeql-action from 4.36.1 to 4.36.2 (#174)

chore(deps): bump github/codeql-action from 4.36.1 to 4.36.2 (#174) #31

Workflow file for this run

name: Release workflows/actions
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: write
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false
jobs:
release:
name: Release ${{ matrix.component.name }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
component:
- { name: build_container_image, path: .github/workflows/build_container_image.yml }
- { name: build_node_package, path: .github/workflows/build_node_package.yml }
- { name: build_node_package_with_pgsql, path: .github/workflows/build_node_package_with_pgsql.yml }
- { name: deploy_container_image, path: .github/workflows/deploy_container_image.yml }
- { name: deploy_helm_chart, path: .github/workflows/deploy_helm_chart.yml }
- { name: merge_multiarch_images, path: .github/workflows/merge_multiarch_images.yml }
- { name: publish_node_package, path: .github/workflows/publish_node_package.yml }
- { name: sast_scan, path: .github/workflows/sast_scan.yaml }
- { name: npm_test, path: actions/npm_test }
- { name: scan_container_image, path: actions/scan_container_image }
- { name: update-nr-flows, path: actions/update-nr-flows }
- { name: project-automation, path: .github/workflows/project-automation.yaml }
- { name: recurring_sprint_issue, path: .github/workflows/recurring_sprint_issue.yml }
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
fetch-tags: true
- name: Compute next version
id: compute-next-version
env:
COMPONENT: ${{ matrix.component.name }}
INCLUDE_PATH: ${{ matrix.component.path }}
run: bash .github/scripts/compute-next-version.sh
- name: Tag
if: steps.compute-next-version.outputs.release == 'true'
env:
TAG: ${{ steps.compute-next-version.outputs.tag }}
COMPONENT: ${{ matrix.component.name }}
VERSION: ${{ steps.compute-next-version.outputs.version }}
run: |
set -euo pipefail
git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
MAJOR="${VERSION%%.*}"
REST="${VERSION#*.}"
MINOR="${REST%%.*}"
git tag -a "$TAG" -m "$TAG"
git push origin "$TAG"
git tag -f "${COMPONENT}/v${MAJOR}"
git tag -f "${COMPONENT}/v${MAJOR}.${MINOR}"
git push origin -f "${COMPONENT}/v${MAJOR}" "${COMPONENT}/v${MAJOR}.${MINOR}"