mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 09:14:58 +00:00
Bumps the actions-minor group with 3 updates in the /.github/workflows directory: [actions/checkout](https://github.com/actions/checkout), [actions/setup-java](https://github.com/actions/setup-java) and [ruby/setup-ruby](https://github.com/ruby/setup-ruby). Updates `actions/checkout` from 7.0.0 to 7.0.1 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](9c091bb21b...3d3c42e5aa) Updates `actions/setup-java` from 5.5.0 to 5.6.0 - [Release notes](https://github.com/actions/setup-java/releases) - [Commits](0f481fcb61...03ad4de099) Updates `ruby/setup-ruby` from 1.316.0 to 1.319.0 - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](d45b1a4e94...003a5c4d8d) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions-minor - dependency-name: actions/setup-java dependency-version: 5.6.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions-minor - dependency-name: ruby/setup-ruby dependency-version: 1.319.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions-minor ... Signed-off-by: dependabot[bot] <support@github.com>
78 lines
2.8 KiB
YAML
78 lines
2.8 KiB
YAML
name: Prepare release
|
|
on:
|
|
workflow_call:
|
|
outputs:
|
|
version:
|
|
description: "The version that is being released."
|
|
value: ${{ jobs.prepare.outputs.version }}
|
|
major_version:
|
|
description: "The major version of the release."
|
|
value: ${{ jobs.prepare.outputs.major_version }}
|
|
latest_tag:
|
|
description: "The most recent, existing release tag."
|
|
value: ${{ jobs.prepare.outputs.latest_tag }}
|
|
backport_source_branch:
|
|
description: "The release branch for the given tag."
|
|
value: ${{ jobs.prepare.outputs.backport_source_branch }}
|
|
backport_target_branches:
|
|
description: "JSON encoded list of branches to target with backports."
|
|
value: ${{ jobs.prepare.outputs.backport_target_branches }}
|
|
|
|
push:
|
|
paths:
|
|
- .github/workflows/prepare-release.yml
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
jobs:
|
|
prepare:
|
|
name: "Prepare release"
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'github/codeql-action'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
outputs:
|
|
version: ${{ steps.versions.outputs.version }}
|
|
major_version: ${{ steps.versions.outputs.major_version }}
|
|
latest_tag: ${{ steps.versions.outputs.latest_tag }}
|
|
backport_source_branch: ${{ steps.branches.outputs.backport_source_branch }}
|
|
backport_target_branches: ${{ steps.branches.outputs.backport_target_branches }}
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
fetch-depth: 0 # Need full history for calculation of diffs
|
|
|
|
- name: Configure runner for release
|
|
uses: ./.github/actions/release-initialise
|
|
|
|
- name: Get version tags
|
|
id: versions
|
|
run: |
|
|
VERSION="v$(jq '.version' -r 'package.json')"
|
|
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
|
MAJOR_VERSION=$(cut -d '.' -f1 <<< "${VERSION}")
|
|
echo "major_version=${MAJOR_VERSION}" >> $GITHUB_OUTPUT
|
|
LATEST_TAG=$(git tag --sort=-v:refname | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+' | head -1)
|
|
echo "latest_tag=${LATEST_TAG}" >> $GITHUB_OUTPUT
|
|
|
|
- name: Determine older release branches
|
|
id: branches
|
|
uses: ./.github/actions/release-branches
|
|
with:
|
|
major_version: ${{ steps.versions.outputs.major_version }}
|
|
latest_tag: ${{ steps.versions.outputs.latest_tag }}
|
|
|
|
- name: Print release information
|
|
run: |
|
|
echo 'version: ${{ steps.versions.outputs.version }}'
|
|
echo 'major_version: ${{ steps.versions.outputs.major_version }}'
|
|
echo 'latest_tag: ${{ steps.versions.outputs.latest_tag }}'
|
|
echo 'backport_source_branch: ${{ steps.branches.outputs.backport_source_branch }}'
|
|
echo 'backport_target_branches: ${{ steps.branches.outputs.backport_target_branches }}'
|