Skip to content

Commit e0ec752

Browse files
Sync with old behavior
1 parent f35037e commit e0ec752

File tree

5 files changed

+11
-299
lines changed

5 files changed

+11
-299
lines changed

.github/VERSION-DETECTION.md

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

.github/WORKFLOWS.md

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

.github/workflows/pull-request.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@ on:
55
branches-ignore:
66
- master
77
- 'dependabot**'
8-
- 'test**'
98

109
jobs:
1110
lint:
1211
name: Lint
13-
if: ${{ !startsWith(github.ref, 'refs/heads/dependabot') }}
1412
runs-on: ubuntu-24.04-arm
1513
steps:
1614
- name: Checkout
@@ -21,8 +19,9 @@ jobs:
2119
with:
2220
dockerfile: Dockerfile
2321

24-
build_test:
22+
build-test:
2523
name: Push test
24+
if: ${{ !startsWith(github.ref, 'refs/heads/doc') && !startsWith(github.ref, 'refs/heads/test') }}
2625
runs-on: ubuntu-24.04-arm
2726
steps:
2827
- name: Checkout
@@ -62,7 +61,7 @@ jobs:
6261
TERM: xterm-256color
6362
run: make push
6463

65-
pull_request:
64+
pull-request:
6665
name: Pull Request
6766
runs-on: ubuntu-24.04-arm
6867
steps:
@@ -83,4 +82,4 @@ jobs:
8382
github_token: ${{ secrets.GITHUB_TOKEN }}
8483
assignee: ${{ github.actor }}
8584
template: .tmp/PULL_REQUEST_TEMPLATE.md
86-
get_diff: true
85+
get_diff: true

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
jobs:
1212
release:
1313
name: Create Release
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-24.04-arm
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v4
@@ -41,7 +41,7 @@ jobs:
4141
VERSION="${{ github.event.inputs.version }}"
4242
git config user.name "github-actions[bot]"
4343
git config user.email "github-actions[bot]@users.noreply.github.com"
44-
git tag -a "$VERSION" -m "Release $VERSION"
44+
git tag -a "$VERSION" -m "$VERSION"
4545
git push origin "$VERSION"
4646
4747
- name: Docker Buildx

.github/workflows/weekly-dependency-check.yml

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,16 @@ name: Weekly Dependency Check
22

33
on:
44
schedule:
5-
# Run every Sunday at 02:00 UTC
6-
- cron: '0 2 * * 0'
7-
workflow_dispatch: # Allow manual trigger
5+
# Run every Monday at 08:00 UTC
6+
- cron: '0 8 * * 1'
87

98
jobs:
109
dependency-check:
1110
name: Test Dependencies
12-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-24.04-arm
1312
steps:
1413
- name: Checkout
1514
uses: actions/checkout@v4
16-
with:
17-
ref: 'master'
18-
fetch-depth: 0
1915

2016
- name: Get latest release tag
2117
id: latest-tag
@@ -29,10 +25,6 @@ jobs:
2925
echo "tag=$LATEST_TAG" >> $GITHUB_OUTPUT
3026
echo "Testing dependencies for tag: $LATEST_TAG"
3127
32-
- name: Checkout latest release
33-
run: |
34-
git checkout ${{ steps.latest-tag.outputs.tag }}
35-
3628
- name: Docker Buildx
3729
uses: docker/setup-buildx-action@v3
3830
with:
@@ -44,25 +36,12 @@ jobs:
4436
image: tonistiigi/binfmt:latest
4537
platforms: amd64,arm64
4638

47-
- name: Test build and push
39+
- name: Build & push test image
4840
env:
4941
DOCKER_BUILDKIT: 1
5042
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
5143
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52-
VERSION: test-${{ steps.latest-tag.outputs.tag }}
44+
VERSION: ${{ steps.latest-tag.outputs.tag }}
5345
VERSION_PREFIX: test-
5446
TERM: xterm-256color
5547
run: make push
56-
57-
- name: Notify on failure
58-
if: failure()
59-
uses: actions/github-script@v7.0.1
60-
with:
61-
script: |
62-
github.rest.issues.create({
63-
owner: context.repo.owner,
64-
repo: context.repo.repo,
65-
title: `Weekly dependency check failed for ${context.payload.inputs?.tag || '${{ steps.latest-tag.outputs.tag }}'}`,
66-
body: `The weekly dependency check failed when building from tag ${{ steps.latest-tag.outputs.tag }}.\n\nPlease check the [workflow run](https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}) for details.`,
67-
labels: ['bug', 'dependencies']
68-
})

0 commit comments

Comments
 (0)