Skip to content

Commit 56b6aa4

Browse files
committed
refactor workflows and update runner to ubuntu-slim
1 parent 02f95b4 commit 56b6aa4

3 files changed

Lines changed: 20 additions & 38 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,17 @@ permissions:
1313

1414
jobs:
1515
build:
16-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-slim
1717
steps:
1818
- name: Checkout your repository using git
1919
uses: actions/checkout@v6
2020

2121
- name: Install, build, and upload your site
2222
uses: withastro/action@v5
23-
# with:
24-
# path: . # The root location of your Astro project inside the repository. (optional)
25-
# node-version: 16 # The specific version of Node that should be used to build your site. Defaults to 16. (optional)
26-
# package-manager: yarn # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
2723

2824
deploy:
2925
needs: build
30-
runs-on: ubuntu-latest
26+
runs-on: ubuntu-slim
3127
environment:
3228
name: github-pages
3329
url: ${{ steps.deployment.outputs.page_url }}
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,29 @@
1-
---
2-
name: Dependabot Auto-Merge
1+
name: Test and Merge
2+
3+
permissions:
4+
contents: read
35

46
on:
57
pull_request:
68
branches:
79
- main
810

911
jobs:
12+
build:
13+
runs-on: ubuntu-slim
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Install dependencies
18+
run: npm ci
19+
20+
- name: Build
21+
run: npm run build
22+
1023
dependabot:
1124
name: Dependabot auto-merge
12-
runs-on: ubuntu-latest
25+
runs-on: ubuntu-slim
26+
needs: build
1327
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'HTTPArchive/har.fyi'
1428

1529
permissions:
@@ -20,12 +34,10 @@ jobs:
2034
- name: Dependabot metadata
2135
id: metadata
2236
uses: dependabot/fetch-metadata@v2
23-
with:
24-
github-token: "${{ secrets.GITHUB_TOKEN }}"
2537

2638
- name: Enable auto-merge for Dependabot PRs
2739
if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'
28-
run: gh pr merge --auto --squash "$PR_URL"
2940
env:
3041
PR_URL: ${{github.event.pull_request.html_url}}
3142
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
43+
run: gh pr merge --auto --squash "$PR_URL"

.github/workflows/test-build.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)