@@ -8,60 +8,14 @@ concurrency:
88 group : ${{ github.workflow }}-${{ github.event.client_payload.github.payload.issue.number }}-${{ github.event.client_payload.slash_command.command }}-${{ github.event.client_payload.slash_command.args.unnamed.arg1 || github.event.client_payload.slash_command.args.all }}
99
1010jobs :
11-
12- update-prepare :
13- name : " Update: Prepare"
14- if : github.event.client_payload.slash_command.args.unnamed.arg1 == 'update'
15- runs-on : ubuntu-latest
16- timeout-minutes : 1
17- steps :
18- - name : Update comment
19- uses : peter-evans/create-or-update-comment@v4
20- with :
21- token : ${{ secrets.GIT_PAT }}
22- repository : ${{ github.event.client_payload.github.payload.repository.full_name }}
23- comment-id : ${{ github.event.client_payload.github.payload.comment.id }}
24- body : |
25- > [Workflow run](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})
26-
27- update-update-ff :
11+ update-ff :
2812 name : " Update: Update Feature Flags"
2913 if : github.event.client_payload.slash_command.args.unnamed.arg1 == 'update'
30- needs :
31- - update-prepare
3214 uses : ./.github/workflows/feature-flags-update.yml
3315 with :
3416 ref : ${{ github.event.client_payload.pull_request.head.ref }}
3517 secrets : inherit
3618
37- update-update-comment :
38- name : " Update: Update Comment"
39- if : always()
40- needs :
41- - update-update-ff
42- runs-on : ubuntu-latest
43- timeout-minutes : 1
44- steps :
45- - name : Get details
46- id : details
47- shell : bash
48- env :
49- PR_HEAD : ${{ github.event.client_payload.pull_request.head.ref }}
50- run : |
51- reaction='-1'
52- if [[ '${{ needs.update-update-ff.result }}' == 'success' ]]; then
53- reaction='+1'
54- fi
55- echo "reaction=${reaction}" >> $GITHUB_OUTPUT
56-
57- - name : Update comment
58- uses : peter-evans/create-or-update-comment@v4
59- with :
60- token : ${{ secrets.GIT_PAT }}
61- repository : ${{ github.event.client_payload.github.payload.repository.full_name }}
62- comment-id : ${{ github.event.client_payload.github.payload.comment.id }}
63- reactions : ${{ steps.details.outputs.reaction }}
64-
6519 help :
6620 if : ${{ github.event.client_payload.slash_command.args.unnamed.arg1 == 'help' || !contains(fromJson('["update"]'), github.event.client_payload.slash_command.args.unnamed.arg1) }}
6721 runs-on : ubuntu-latest
0 commit comments