Skip to content

Bump github.com/jpsim/yams from 5.0.6 to 5.1.0 #7

Bump github.com/jpsim/yams from 5.0.6 to 5.1.0

Bump github.com/jpsim/yams from 5.0.6 to 5.1.0 #7

Workflow file for this run

name: Release
on:
pull_request:
types:
- closed
branches:
- 'main'
jobs:
test:
name: Test
if: github.event.pull_request.merged == true && github.head_ref == 'release'
uses: Mobelux/Watcher/.github/workflows/tests.yml@main
release:
name: Release
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && github.head_ref == 'release'
needs: test
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Get version
id: get-version
shell: bash
run: |
VERSION=$(grep -Eo '([0-9]+\.*)+' ${{ vars.VERSION_FILE_PATH }})
echo "current-version=$VERSION" >> $GITHUB_ENV
- name: Push tag
uses: actions/github-script@v7
with:
script: |
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/${{ env.current-version }}',
sha: '${{ github.sha }}'
})
- name: Create release
uses: actions/github-script@v7
with:
script: |
github.rest.repos.createRelease({
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: '${{ env.current-version }}',
generate_release_notes: true,
draft: false,
prerelease: false
})