Skip to content

Commit

Permalink
[Feat] change the trigger way of release action
Browse files Browse the repository at this point in the history
  • Loading branch information
mistricky committed Feb 23, 2024
1 parent bed9f39 commit 9194a94
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
name: Release

on:
push:
branches:
- main
push

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
id: vars
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT

- name: Check output
env:
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
run: |
echo $RELEASE_VERSION
echo ${{ steps.vars.outputs.tag }}
- name: Setup python
uses: actions/setup-python@v5
Expand Down

0 comments on commit 9194a94

Please sign in to comment.