Skip to content
This repository has been archived by the owner on Jan 26, 2025. It is now read-only.

Files Sync From fuelviews/github-workflow-sync #16

Files Sync From fuelviews/github-workflow-sync

Files Sync From fuelviews/github-workflow-sync #16

Workflow file for this run

name: Auto Tag and Release
on:
push:
pull_request:
types: [closed]
branches:
- main
jobs:
release:
if: github.event.pull_request.merged == true
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.merge_commit_sha }}
fetch-depth: '0'
- name: Bump version and push tag
id: bump_version
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BUMP: patch
WITH_V: true
RELEASE_BRANCHES: main
- name: Create GitHub Release
if: steps.bump_version.outputs.new_tag
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.bump_version.outputs.new_tag }}
release_name: ${{ steps.bump_version.outputs.new_tag }}
draft: true
prerelease: false