Skip to content

Commit 34eccf5

Browse files
authored
Merge pull request #3582 from maxkadel/run_release_7_x_on_schedule
Create a weekly scheduled CI for release-7.x branch
2 parents dc5fab4 + 8691f44 commit 34eccf5

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# If there are failures running this workflow, please resolve them on the release-7.x branch
2+
# and then port any necessary changes to this branch.
3+
4+
name: release-7.x scheduled
5+
6+
on:
7+
workflow_dispatch:
8+
schedule:
9+
# Weekly at 9:35 on Friday
10+
# Somewhat weird timing so that it isn't delayed too much
11+
- cron: '35 9 * * 5'
12+
jobs:
13+
lint:
14+
uses: projectblacklight/blacklight/.github/workflows/[email protected]
15+
with:
16+
ref: release-7.x
17+
test:
18+
uses: projectblacklight/blacklight/.github/workflows/[email protected]
19+
with:
20+
ref: release-7.x
21+
docker_build:
22+
uses: projectblacklight/blacklight/.github/workflows/[email protected]
23+
with:
24+
ref: release-7.x
25+
report:
26+
runs-on: ubuntu-latest
27+
if: ${{ always() && contains(join(needs.*.result, ','), 'failure') }}
28+
needs: [lint, test, docker_build]
29+
steps:
30+
- name: Report on failure of any dependent job
31+
env:
32+
NEEDS: ${{ toJSON(needs) }}
33+
uses: slackapi/[email protected]
34+
with:
35+
method: chat.postMessage
36+
token: ${{ secrets.SLACK_BOT_TOKEN }}
37+
payload: |
38+
channel: ${{ secrets.SLACK_CHANNEL_ID }}
39+
text: "The weekly CI run of the release-7.x branch has failed"

0 commit comments

Comments
 (0)