Skip to content

Commit

Permalink
action
Browse files Browse the repository at this point in the history
  • Loading branch information
wszgrcy committed Mar 23, 2024
1 parent 3e294dc commit d7d51cd
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: tag
on:
workflow_dispatch:
inputs:
tag:
description: '打标签'
required: true

env:
REPOSITORY_PATH: https://${{secrets.ACCESS_TOKEN}}@github.com/
jobs:
tag:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
steps:
- name: init
run: |
git config --global user.name "${GITHUB_ACTOR}"
git config --global user.email "${GITHUB_ACTOR}@gmail.com"
- uses: actions/checkout@v4
- run: |
git tag v${{github.event.inputs.tag}}
git push origin v${{github.event.inputs.tag}}

0 comments on commit d7d51cd

Please sign in to comment.