Skip to content

Commit

Permalink
OPS-5460 Split up job
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncolincap committed Nov 13, 2023
1 parent ef68256 commit 8f51eaa
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/filter-branch-name.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@ jobs:
job:
runs-on: ubuntu-latest
outputs:
ticket: ${{ steps.step.outputs.ticket }}
scope: ${{ steps.step.outputs.scope }}
ticket: ${{ steps.ticket.outputs.ticket }}
scope: ${{ steps.scope.outputs.scope }}
steps:
- name: Filter branch name
id: step
- name: Filter ticket
id: ticket
run: |
echo "ticket=$(echo ${{ inputs.branch_name }} | grep -oE '[a-zA-Z]+-[0-9]+')" >> $GITHUB_OUTPUT
- name: Filter scope
id: scope
run: |
echo "scope=$(echo ${{ inputs.branch_name }} | grep -oE '[a-zA-Z]+-[0-9]+-[a-z]+' | grep -oE '[a-z]+$')" >> $GITHUB_OUTPUT

0 comments on commit 8f51eaa

Please sign in to comment.