This repository has been archived by the owner on Jan 26, 2025. It is now read-only.
Files Sync From fuelviews/github-workflow-sync #6
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: 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: Release ${{ steps.bump_version.outputs.new_tag }} | |
body: | | |
Changes in this Release: | |
${{ github.event.pull_request.title }} | |
${{ github.event.pull_request.body }} | |
draft: true | |
prerelease: false |