Bump actions/checkout from 3 to 4 #158
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: ci | |
on: | |
push: | |
branches: | |
- '**' | |
tags-ignore: | |
- '*' | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: make versions | |
- run: make test | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: test-results | |
path: build/ | |
- name: Validate the changelog | |
uses: ./ | |
id: clq-validate | |
with: | |
changeMap: .github/clq/changemap.json | |
mode: feature | |
- name: Echo changelog values | |
run: | | |
echo "${name:?}" | |
echo "${tag:?} -- ${status:?}" | |
echo "${changes:?}" | |
env: | |
tag: ${{ steps.clq-validate.outputs.tag }} | |
name: ${{ steps.clq-validate.outputs.name }} | |
status: ${{ steps.clq-validate.outputs.status }} | |
changes: ${{ steps.clq-validate.outputs.changes }} | |
validate-release: | |
if: github.event_name == 'pull_request' || github.ref == 'refs/heads/main' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Extract tag from the changelog | |
uses: ./ | |
id: clq-extract | |
with: | |
changeMap: .github/clq/changemap.json | |
mode: release | |
- uses: denisa/semantic-tag-helper@v1 | |
with: | |
mode: test | |
tag: ${{ steps.clq-extract.outputs.tag }} | |
tag: | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
needs: [ test, validate-release ] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./ | |
id: clq-extract | |
with: | |
changeMap: .github/clq/changemap.json | |
- uses: denisa/semantic-tag-helper@v1 | |
with: | |
mode: set | |
tag: ${{ steps.clq-extract.outputs.tag }} | |
- uses: ncipollo/release-action@v1 | |
with: | |
tag: ${{ steps.clq-extract.outputs.tag }} | |
prerelease: ${{ steps.clq-extract.outputs.status == 'prereleased' }} | |
name: ${{ steps.clq-extract.outputs.name }} | |
body: ${{ steps.clq-extract.outputs.changes }} |