Skip to content

Commit 32227c4

Browse files
authored
👷 Update GitHub Actions format (#1363)
1 parent cdc7b50 commit 32227c4

File tree

6 files changed

+15
-57
lines changed

6 files changed

+15
-57
lines changed

.github/dependabot.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
version: 2
22
updates:
33
# GitHub Actions
4-
- package-ecosystem: "github-actions"
5-
directory: "/"
4+
- package-ecosystem: github-actions
5+
directory: /
66
schedule:
7-
interval: "daily"
7+
interval: daily
88
commit-message:
99
prefix:
1010
# Python
11-
- package-ecosystem: "pip"
12-
directory: "/"
11+
- package-ecosystem: pip
12+
directory: /
1313
schedule:
14-
interval: "daily"
14+
interval: daily
1515
commit-message:
1616
prefix:

.github/workflows/generate-client.yml

+1-13
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
node-version: lts/*
2222
- uses: actions/setup-python@v5
2323
with:
24-
python-version: '3.10'
24+
python-version: "3.10"
2525
- name: Install uv
2626
uses: astral-sh/setup-uv@v2
2727
with:
@@ -41,15 +41,3 @@ jobs:
4141
git add frontend/src/client
4242
git diff --staged --quiet || git commit -m "✨ Autogenerate frontend client"
4343
git push
44-
45-
# https://github.com/marketplace/actions/alls-green#why
46-
generate-client-alls-green: # This job does nothing and is only used for the branch protection
47-
if: always()
48-
needs:
49-
- generate-client
50-
runs-on: ubuntu-latest
51-
steps:
52-
- name: Decide whether the needed jobs succeeded or failed
53-
uses: re-actors/alls-green@release/v1
54-
with:
55-
jobs: ${{ toJSON(needs) }}

.github/workflows/latest-changes.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ on:
1212
description: PR number
1313
required: true
1414
debug_enabled:
15-
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
15+
description: "Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)"
1616
required: false
17-
default: 'false'
17+
default: "false"
1818

1919
jobs:
2020
latest-changes:
@@ -34,7 +34,7 @@ jobs:
3434
with:
3535
token: ${{ secrets.GITHUB_TOKEN }}
3636
latest_changes_file: ./release-notes.md
37-
latest_changes_header: '## Latest Changes'
38-
end_regex: '^## '
37+
latest_changes_header: "## Latest Changes"
38+
end_regex: "^## "
3939
debug_logs: true
40-
label_header_prefix: '### '
40+
label_header_prefix: "### "

.github/workflows/lint-backend.yml

+1-14
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ on:
1010
- synchronize
1111

1212
jobs:
13-
1413
lint-backend:
1514
runs-on: ubuntu-latest
1615
steps:
@@ -19,22 +18,10 @@ jobs:
1918
- name: Set up Python
2019
uses: actions/setup-python@v5
2120
with:
22-
python-version: '3.10'
21+
python-version: "3.10"
2322
- name: Install uv
2423
uses: astral-sh/setup-uv@v2
2524
with:
2625
version: "0.4.15"
2726
- run: uv run bash scripts/lint.sh
2827
working-directory: backend
29-
30-
# https://github.com/marketplace/actions/alls-green#why
31-
lint-backend-alls-green: # This job does nothing and is only used for the branch protection
32-
if: always()
33-
needs:
34-
- lint-backend
35-
runs-on: ubuntu-latest
36-
steps:
37-
- name: Decide whether the needed jobs succeeded or failed
38-
uses: re-actors/alls-green@release/v1
39-
with:
40-
jobs: ${{ toJSON(needs) }}

.github/workflows/smokeshow.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,14 @@ jobs:
1616
steps:
1717
- uses: actions/setup-python@v5
1818
with:
19-
python-version: '3.9'
20-
19+
python-version: "3.10"
2120
- run: pip install smokeshow
22-
2321
- uses: actions/download-artifact@v4
2422
with:
2523
name: coverage-html
2624
path: backend/htmlcov
2725
github-token: ${{ secrets.GITHUB_TOKEN }}
2826
run-id: ${{ github.event.workflow_run.id }}
29-
3027
- run: smokeshow upload backend/htmlcov
3128
env:
3229
SMOKESHOW_GITHUB_STATUS_DESCRIPTION: Coverage {coverage-percentage}

.github/workflows/test-backend.yml

+1-15
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,15 @@ on:
1010
- synchronize
1111

1212
jobs:
13-
1413
test-backend:
1514
runs-on: ubuntu-latest
1615
steps:
1716
- name: Checkout
1817
uses: actions/checkout@v4
19-
2018
- name: Set up Python
2119
uses: actions/setup-python@v5
2220
with:
23-
python-version: '3.10'
21+
python-version: "3.10"
2422
- name: Install uv
2523
uses: astral-sh/setup-uv@v2
2624
with:
@@ -40,15 +38,3 @@ jobs:
4038
name: coverage-html
4139
path: backend/htmlcov
4240
include-hidden-files: true
43-
44-
# https://github.com/marketplace/actions/alls-green#why
45-
alls-green: # This job does nothing and is only used for the branch protection
46-
if: always()
47-
needs:
48-
- test-backend
49-
runs-on: ubuntu-latest
50-
steps:
51-
- name: Decide whether the needed jobs succeeded or failed
52-
uses: re-actors/alls-green@release/v1
53-
with:
54-
jobs: ${{ toJSON(needs) }}

0 commit comments

Comments
 (0)