mirror of
https://github.com/xemu-project/xemu.git
synced 2026-10-20 17:49:17 +02:00
Bumps [actions/checkout](https://github.com/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](https://github.com/actions/checkout/compare/9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0...3d3c42e5aac5ba805825da76410c181273ba90b1) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
name: Release (Dispatched)
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
tag:
|
|
name: Create release tag
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
outputs:
|
|
tag: ${{ steps.semver.outputs.next }}
|
|
steps:
|
|
- name: Clone tree
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v4
|
|
- name: Determine new tag version
|
|
id: semver
|
|
run: |
|
|
latest=$(
|
|
git ls-remote --tags --refs "https://github.com/${GITHUB_REPOSITORY}.git" 'v[0-9]*.[0-9]*.[0-9]*' |
|
|
awk '{print $2}' | sed 's#refs/tags/##' | sort -V | tail -n 1
|
|
)
|
|
[ -z "$latest" ] && latest="v0.0.0"
|
|
ver="${latest#v}"
|
|
IFS=. read -r major minor patch <<< "$ver"
|
|
next="v${major}.${minor}.$((patch+1))"
|
|
echo "next=$next" >> "$GITHUB_OUTPUT"
|
|
- name: Push new tag
|
|
run: |
|
|
git config user.name "nobody"
|
|
git config user.email "nobody@nowhere"
|
|
git tag -a "${{ steps.semver.outputs.next }}" -m "${{ steps.semver.outputs.next }}"
|
|
git push origin "${{ steps.semver.outputs.next }}"
|
|
|
|
release:
|
|
name: Release
|
|
needs: tag
|
|
uses: ./.github/workflows/release.yml
|
|
with:
|
|
ref: ${{ needs.tag.outputs.tag }}
|
|
tag: ${{ needs.tag.outputs.tag }}
|