Skip to content

Commit 6760ca1

Browse files
committed
ci: trigger progress-update workflow after build completion (#491)
1 parent 95fdb2a commit 6760ca1

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

β€Ž.github/workflows/progress.ymlβ€Ž

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,22 @@
11
name: Update Progress
22

33
on:
4-
pull_request:
5-
branches: [ main ]
6-
types: [ opened, synchronize ]
7-
paths:
8-
- .github/workflows/progress.yml
9-
- docs/README.md
10-
- kata/**
4+
workflow_run:
5+
workflows: [ Build CI ]
6+
branches-ignore: [ main ]
7+
types: [ completed ]
118

129
jobs:
1310
update-progress:
1411
runs-on: ubuntu-22.04
1512
timeout-minutes: 1
13+
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.actor.login != 'dependabot[bot]' }}
1614
steps:
1715
- name: Checkout repository
1816
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
1917
with:
2018
fetch-depth: 0
21-
ref: ${{ github.event.pull_request.head.ref }}
19+
ref: ${{ github.event.workflow_run.head_branch }}
2220

2321
- name: Update README progress
2422
run: |

β€Ždocs/README.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Codewars Handbook β˜•οΈπŸš€
22

33
[![Views statistics +1 πŸ‘€](https://img.shields.io/badge/dynamic/xml?color=success&label=views&query=//*[name()=%27text%27][3]&url=https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FParanoidUser%2Fcodewars-handbook)](https://hits.seeyoufarm.com/api/count/graph/dailyhits.svg?url=https://github.com/ParanoidUser/codewars-handbook)
4-
[![Completed kata πŸ‘Œ](https://img.shields.io/badge/completed%20kata-68.8%25-red.svg)](https://www.codewars.com/kata/search/java?xids=completed)
4+
[![Completed kata πŸ‘Œ](https://img.shields.io/badge/completed%20kata-68.7%25-red.svg)](https://www.codewars.com/kata/search/java?xids=completed)
55
[![CI pipeline πŸ› ](https://img.shields.io/github/actions/workflow/status/ParanoidUser/codewars-handbook/build.yml?branch=main)](https://github.com/ParanoidUser/codewars-handbook/actions/workflows/build.yml)
66
[![Quality gate πŸ”Ž](https://img.shields.io/sonar/alert_status/codewars-handbook?server=https%3A%2F%2Fsonarcloud.io)](https://sonarcloud.io/dashboard?id=codewars-handbook)
77
[![Let's have a chat! πŸ“ž](https://img.shields.io/gitter/room/ParanoidUser/codewars-handbook?color=49c39e)](https://gitter.im/ParanoidUser/codewars-handbook)

0 commit comments

Comments
Β (0)