Skip to content

Commit

Permalink
Merge pull request #462 from alphagov/gha
Browse files Browse the repository at this point in the history
Use GitHub Actions instead of Heroku
  • Loading branch information
MuriloDalRi authored Oct 12, 2023
2 parents 3313fc3 + 08fe9cc commit 85269cd
Show file tree
Hide file tree
Showing 11 changed files with 88 additions and 192 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/afternoon_seal.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: "Afternoon Seal"

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

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

jobs:
afternoon-seal:
Expand All @@ -18,6 +25,8 @@ jobs:
id: afternoon_seal
run: |
teams=(
govuk-accounts
govuk-platform-security-reliability
)
for team in ${teams[*]} ; do
Expand Down
41 changes: 31 additions & 10 deletions .github/workflows/dependapanda.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: "Dependapanda"

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

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

jobs:
dependapanda:
Expand All @@ -16,13 +24,26 @@ jobs:

- name: Dependapanda
id: dependapanda
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
teams=(
)
for team in ${teams[*]}; do
./bin/seal_runner.rb $team dependapanda
sleep 60
done
teams=(
di-ipv-orange-cri-maintainers
govuk-accounts-tech
govuk-datagovuk
govuk-developers
govuk-forms
govuk-platform-security-reliability
govuk-publishing-access-and-permissions
govuk-publishing-components
govuk-publishing-experience
govuk-publishing-on-platform-content
govuk-publishing-platform
govuk-platform-engineering
content-interactions-on-platform-govuk
navigation-and-homepage-govuk
user-experience-measurement-govuk
)
for team in ${teams[*]}; do
./bin/seal_runner.rb $team dependapanda
sleep 60
done
62 changes: 46 additions & 16 deletions .github/workflows/morning_seal.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: "Morning Seal"

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

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

jobs:
morning-seal:
Expand All @@ -16,19 +24,41 @@ jobs:

- name: Morning Seal
id: morning_seal
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
teams=(
)
for team in ${teams[*]}; do
./bin/seal_runner.rb $team
done
morning_quote_teams=(
)
for team in ${morning_quote_teams[*]}; do
./bin/seal_runner.rb $team quotes
done
teams=(
di-ipv-orange-cri-maintainers
govuk-accounts-tech
govuk-datagovuk
govuk-developers
govuk-forms
govuk-pay
govuk-platform-security-reliability
govuk-publishing-access-and-permissions
govuk-publishing-components
govuk-publishing-experience
govuk-publishing-on-platform-content
govuk-publishing-platform
govuk-platform-engineering
govwifi
content-interactions-on-platform-govuk
navigation-and-homepage-govuk
user-experience-measurement-govuk
dev-platform-team
)
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
user-experience-measurement-govuk
)
for team in ${morning_quote_teams[*]}; do
./bin/seal_runner.rb $team quotes
done
1 change: 0 additions & 1 deletion Procfile

This file was deleted.

58 changes: 0 additions & 58 deletions app.json

This file was deleted.

10 changes: 0 additions & 10 deletions bin/afternoon_seal.sh

This file was deleted.

24 changes: 0 additions & 24 deletions bin/dependapanda.sh

This file was deleted.

39 changes: 0 additions & 39 deletions bin/morning_seal.sh

This file was deleted.

4 changes: 0 additions & 4 deletions config.ru

This file was deleted.

2 changes: 1 addition & 1 deletion lib/slack_poster.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,6 @@ def set_mood_from_team
end

def channel
@team_channel = "#bot-testing" if ENV["DYNO"].nil?
@team_channel = "#bot-testing" if ENV["DEVELOPMENT"]
end
end
28 changes: 0 additions & 28 deletions server.rb

This file was deleted.

0 comments on commit 85269cd

Please sign in to comment.