Skip to content

Bump github.com/apple/swift-async-algorithms from 0.1.0 to 1.0.0 #6

Bump github.com/apple/swift-async-algorithms from 0.1.0 to 1.0.0

Bump github.com/apple/swift-async-algorithms from 0.1.0 to 1.0.0 #6

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
})