-
Notifications
You must be signed in to change notification settings - Fork 63
26 lines (24 loc) · 1021 Bytes
/
completed-feature-workflow.yml
File metadata and controls
26 lines (24 loc) · 1021 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: Completed Feature Workflow
on:
pull_request:
branches: [ develop ]
types: [closed]
jobs:
update-merged-issue-issues:
if: github.event.pull_request.merged_by != '' && github.actor != 'dependabot[bot]' && startsWith(github.head_ref, 'feature/issue-')
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v5
- name: Extract Issue Number
env:
GITHUB_PULL_REQUEST_HEAD_REF: ${{ github.event.pull_request.head.ref }}
shell: bash
run: echo "##[set-output name=issue;]$(echo $GITHUB_PULL_REQUEST_HEAD_REF | sed 's|[^0-9]||g')"
id: extract_issue
- name: Output Issue Number
run: echo "Issue Number- ${{ steps.extract_issue.outputs.issue }}"
- name: Update Labels
run: gh issue edit ${{ steps.extract_issue.outputs.issue }} --add-label "next release" --remove-label "in progress"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}