Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# EditorConfig helps developers define and maintain consistent coding styles
root = true

[*]
Expand Down
86 changes: 6 additions & 80 deletions .github/workflows/auto-create-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches-ignore:
- master
- main
- dependabot/**

permissions:
Expand All @@ -12,83 +13,8 @@ permissions:
pull-requests: write

jobs:
lint:
name: Lint
runs-on: ubuntu-24.04-arm
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true

- name: Install Task
uses: arduino/setup-task@v2.0.0
with:
version: 3.x

- name: Run linters
run: task lint

build-and-push:
name: Build and push
runs-on: ubuntu-24.04-arm
needs: [lint]
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true

- name: Install Task
uses: arduino/setup-task@v2.0.0
with:
version: 3.x

- name: Install Docker Buildx
uses: docker/setup-buildx-action@v4

- name: Install QEMU
uses: docker/setup-qemu-action@v4
with:
image: tonistiigi/binfmt:latest
platforms: amd64,arm64

- name: Get Docker commands
run: task docker:cmds

- name: Build and push test image
env:
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: task docker:push

- name: Inspect image
run: task docker:push:inspect

pull-request:
name: Pull Request
runs-on: ubuntu-24.04-arm
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true

- name: Install Task
uses: arduino/setup-task@v2.0.0
with:
version: 3.x

- name: Get template
run: task git:get-pr-template

- name: Create Pull Request
uses: devops-infra/action-pull-request@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
assignee: ${{ github.actor }}
template: .tmp/PULL_REQUEST_TEMPLATE.md
get_diff: true
call:
uses: devops-infra/.github/.github/workflows/reusable-auto-create-pull-request.yml@v1
with:
profile: actions
secrets: inherit
99 changes: 0 additions & 99 deletions .github/workflows/auto-create-release.yml

This file was deleted.

51 changes: 10 additions & 41 deletions .github/workflows/cron-check-dependencies.yml
Original file line number Diff line number Diff line change
@@ -1,50 +1,19 @@
name: (Cron) Check dependencies
name: (Cron) Weekly repository health

on:
schedule:
# Run every Monday at 08:00 UTC
- cron: 0 8 * * 1
- cron: 0 5 * * 1
workflow_dispatch:

permissions:
contents: read
issues: write
pull-requests: read
packages: write

jobs:
dependency-check:
name: Test dependencies
runs-on: ubuntu-24.04-arm
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true

- name: Install Task
uses: arduino/setup-task@v2.0.0
with:
version: 3.x

- name: Install Docker Buildx
uses: docker/setup-buildx-action@v4

- name: Install QEMU
uses: docker/setup-qemu-action@v4
with:
image: tonistiigi/binfmt:latest
platforms: amd64,arm64

- name: Run linters
run: task lint

- name: Get Docker commands
run: task docker:cmds

- name: Build and push test image
env:
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: task docker:push

- name: Inspect image
run: task docker:push:inspect
call:
uses: devops-infra/.github/.github/workflows/reusable-cron-check-dependencies.yml@v1
with:
profile: actions
secrets: inherit
43 changes: 6 additions & 37 deletions .github/workflows/manual-sync-common-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,46 +13,15 @@ on:
- configs
- ignores
- taskfiles
- workflows

permissions:
contents: write
pull-requests: write

jobs:
update:
name: Sync common files and create pull request
runs-on: ubuntu-24.04-arm
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true

- name: Install Task
uses: arduino/setup-task@v2.0.0
with:
version: 3.x

- name: Sync files and get PR template
id: version
run: |
task sync:${{ github.event.inputs.type }}
task git:set-config
task git:get-pr-template

- name: Push to release branch
uses: devops-infra/action-commit-push@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
commit_message: ":art: Sync common files with action-template repository"
target_branch: ${{ format('release/{0}', steps.version.outputs.REL_VERSION) }}

- name: Create Pull Request
uses: devops-infra/action-pull-request@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
assignee: ${{ github.actor }}
template: .tmp/PULL_REQUEST_TEMPLATE.md
get_diff: true
call:
uses: devops-infra/.github/.github/workflows/reusable-manual-sync-common-files.yml@v1
with:
sync-type: ${{ inputs.type }}
template-profile: actions
secrets: inherit
Loading
Loading