Skip to content

Creates a tag, GitHub release, and backmerge PR after merging a release or hotfix branch.

License

Notifications You must be signed in to change notification settings

district09/github_action_gitflow-release

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Example workflow using this composite action

name: GitFlow Release Workflow

on:
  pull_request:
    branches:
      - master
    types: [closed]

permissions:
  contents: write
  pull-requests: write

jobs:
  release:
    if: github.event.pull_request.merged == true
    runs-on: ubuntu-latest
    steps:
      - name: Checkout the repository
        uses: actions/checkout@v4
        with:
          fetch-depth: 0  # Ensures full history is available

      - name: Set up GitHub token
        run: echo "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV

      - name: Use the Gitflow release action
        uses: District09-Ent/github_action_auto-release@main
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          merged_branch_name: ${{ github.event.pull_request.head.ref }}
          merged_branch_sha: ${{ github.event.pull_request.head.sha }}
          tag_branch: main  # or specify the branch where the tag should be created
          backmerge_branch: develop  # or specify the branch where the merged branch should be merged back to

About

Creates a tag, GitHub release, and backmerge PR after merging a release or hotfix branch.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published