Skip to content

Commit

Permalink
chore : tag 생성 동작 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
joon6093 authored Sep 27, 2024
1 parent b83e864 commit cb0682d
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/pre-release-tagging.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,17 @@
name: 'pre-release-tagging'

on:
pull_request:
types: [closed]
push:
branches:
- main

jobs:
create-tag:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Extract version
id: extract_version
run: |
VERSION=$(echo "${{ github.event.pull_request.title }}" | grep -oP '\d+\.\d+\.\d+')
echo "version=$VERSION" >> $GITHUB_OUTPUT

- name: Create a tag
if: steps.extract_version.outputs.version != ''
uses: rickstaa/action-create-tag@v1
with:
tag: "${{ steps.extract_version.outputs.version }}"

- name: Output created tag
if: steps.extract_version.outputs.version != ''
run: echo "Created tag v${{ steps.extract_version.outputs.version }}"
tag: "2.2.0"

0 comments on commit cb0682d

Please sign in to comment.