Skip to content

Commit

Permalink
Update example.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hoshiyosan authored Sep 24, 2023
1 parent a5efc42 commit 63cfd80
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ jobs:
if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'version/')
runs-on: ubuntu-latest
steps:
- name: "Do weird deployment"
run: echo "Source branch ${{ github.head_ref }}"

- id: parse-version
name: "Parse version from branch name"
run: |
export BRANCH_NAME="${{ github.head_ref }}"
echo "version=${BRANCH_NAME/version\//}" >> $GITHUB_OUTPUT
- name: "Display parsed version"
run: "echo ${{ steps.parse-version.outputs.version }}"

0 comments on commit 63cfd80

Please sign in to comment.