Skip to content

Commit

Permalink
Merge pull request #510 from alphagov/split-quotes-prs
Browse files Browse the repository at this point in the history
Split quotes and PRs into different workflows
  • Loading branch information
MuriloDalRi authored Apr 2, 2024
2 parents 1e3fcaa + 18fefe4 commit 9ee9146
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Afternoon Seal"
name: "Afternoon Seal Quotes"

on:
workflow_dispatch: {}
Expand All @@ -21,8 +21,8 @@ jobs:
with:
bundler-cache: true

- name: Afternoon Seal
id: afternoon_seal
- name: Afternoon Seal Quotes
id: afternoon_seal_quotes
run: |
teams=(
govuk-developers
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Morning Seal"
name: "Morning Seal PRs"

on:
workflow_dispatch: {}
Expand All @@ -22,8 +22,8 @@ jobs:
with:
bundler-cache: true

- name: Morning Seal
id: morning_seal
- name: Morning Seal PRs
id: morning_seal_prs
run: |
teams=(
di-authentication
Expand All @@ -46,16 +46,3 @@ jobs:
for team in ${teams[*]}; do
./bin/seal_runner.rb $team
done
morning_quote_teams=(
fun-workstream-govuk
fun-workstream-gds-community
govuk-green-team
navigation-and-homepage-govuk
dev-platform-team
ai-govuk
)
for team in ${morning_quote_teams[*]}; do
./bin/seal_runner.rb $team quotes
done
38 changes: 38 additions & 0 deletions .github/workflows/morning_seal_quotes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: "Morning Seal Quotes"

on:
workflow_dispatch: {}
schedule:
- cron: '30 7 * * 1-5' # Runs at 7:30, Monday through Friday.

env:
SEAL_ORGANISATION: alphagov
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

jobs:
morning-seal:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true

- name: Morning Seal Quotes
id: morning_seal_quotes
run: |
morning_quote_teams=(
fun-workstream-govuk
fun-workstream-gds-community
govuk-green-team
navigation-and-homepage-govuk
dev-platform-team
ai-govuk
)
for team in ${morning_quote_teams[*]}; do
./bin/seal_runner.rb $team quotes
done

0 comments on commit 9ee9146

Please sign in to comment.