Bump actions/checkout from 4.2.1 to 4.2.2 #85
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Version-handling check | |
on: | |
pull_request: | |
permissions: {} | |
jobs: | |
versions: | |
name: Versions | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
version: ['v0.7.0', 'v0.8.0', 'v0.12.0', 'rc', 'latest', 'devel', 'release-0.8', 'release-0.12'] | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- name: Download and install subctl | |
run: VERSION="${{ matrix.version }}" ./getsubctl.sh | |
- name: Check we got subctl | |
run: ~/.local/bin/subctl version | |
- name: Check we got the right version (specific) | |
if: startsWith(matrix.version, 'v') | |
run: | | |
[ "$(~/.local/bin/subctl version)" = "subctl version: ${{ matrix.version }}" ] | |
- name: Check we got the right version (rc) | |
if: matrix.version == 'rc' | |
run: | | |
[[ "$(~/.local/bin/subctl version)" =~ ^"subctl version: v"[0-9.]+-rc[0-9]+$ ]] | |
- name: Check we got the right version (devel/release) | |
if: matrix.version == 'devel' || startsWith(matrix.version, 'release') | |
run: | | |
[[ "$(~/.local/bin/subctl version)" =~ ^"subctl version: "([a-z]+-)?${{ matrix.version }}(-[0-9]+-g[a-f0-9]+)?$ ]] |