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
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,11 @@ updates:
interval: weekly
assignees:
- ChristophShyper

# # Enable version updates for pip
# - package-ecosystem: pip
# directory: /
# schedule:
# interval: daily
# assignees:
# - ChristophShyper
6 changes: 3 additions & 3 deletions .github/workflows/auto-create-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-24.04-arm
steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true
Expand All @@ -36,7 +36,7 @@ jobs:
needs: [lint]
steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
runs-on: ubuntu-24.04-arm
steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto-create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-24.04-arm
steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cron-check-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-24.04-arm
steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true
Expand Down
58 changes: 58 additions & 0 deletions .github/workflows/manual-sync-common-files.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: (Manual) Sync Common Files

on:
workflow_dispatch:
inputs:
type:
description: File type to sync
required: true
default: all
type: choice
options:
- all
- 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
2 changes: 1 addition & 1 deletion .github/workflows/manual-update-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
runs-on: ubuntu-24.04-arm
steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true
Expand Down
18 changes: 16 additions & 2 deletions Taskfile.cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ version: '3'

silent: true

vars:
PR_TEMPLATE: https://raw.githubusercontent.com/devops-infra/.github/master/PULL_REQUEST_TEMPLATE.md
TEMPLATE_REPO_BASE_URL: https://raw.githubusercontent.com/devops-infra/template-action/refs/heads/master

tasks:
pre-commit:
desc: Run all pre-commit hooks
Expand Down Expand Up @@ -228,6 +232,7 @@ tasks:
curl -sL {{.TEMPLATE_REPO_BASE_URL}}/.pre-commit-config.yaml -o ./.pre-commit-config.yaml
curl -sL {{.TEMPLATE_REPO_BASE_URL}}/.shellcheckrc -o ./.shellcheckrc
curl -sL {{.TEMPLATE_REPO_BASE_URL}}/.yamllint.yml -o ./.yamllint.yml
git add .editorconfig .hadolint.yaml .pre-commit-config.yaml .shellcheckrc .yamllint.yml
echo "βœ… Synced configuration files"

sync:ignores:
Expand All @@ -237,6 +242,7 @@ tasks:
echo "▢️ Syncing ignore files from template-action..."
curl -sL {{.TEMPLATE_REPO_BASE_URL}}/.gitignore -o ./.gitignore
curl -sL {{.TEMPLATE_REPO_BASE_URL}}/.dockerignore -o ./.dockerignore
git add .gitignore .dockerignore
echo "βœ… Synced ignore files"

sync:taskfiles:
Expand All @@ -248,6 +254,7 @@ tasks:
curl -sL {{.TEMPLATE_REPO_BASE_URL}}/Taskfile.cicd.yml -o ./Taskfile.cicd.yml
curl -sL {{.TEMPLATE_REPO_BASE_URL}}/Taskfile.docker.yml -o ./Taskfile.docker.yml
curl -sL {{.TEMPLATE_REPO_BASE_URL}}/Taskfile.variables.yml -o ./Taskfile.variables.yml
git add Taskfile*.yml
echo "βœ… Synced Taskfiles"

sync:workflows:
Expand All @@ -258,8 +265,15 @@ tasks:
mkdir -p .github/workflows
curl -sL {{.TEMPLATE_REPO_BASE_URL}}/.github/workflows/auto-create-pull-request.yml \
-o ./.github/workflows/auto-create-pull-request.yml
curl -sL {{.TEMPLATE_REPO_BASE_URL}}/.github/workflows/auto-create-release.yml -o ./.github/workflows/auto-create-release.yml
curl -sL {{.TEMPLATE_REPO_BASE_URL}}/.github/workflows/auto-create-release.yml \
-o ./.github/workflows/auto-create-release.yml
curl -sL {{.TEMPLATE_REPO_BASE_URL}}/.github/workflows/cron-check-dependencies.yml \
-o ./.github/workflows/cron-check-dependencies.yml
curl -sL {{.TEMPLATE_REPO_BASE_URL}}/.github/workflows/manual-update-version.yml -o ./.github/workflows/manual-update-version.yml
curl -sL {{.TEMPLATE_REPO_BASE_URL}}/.github/workflows/manual-sync-common-files.yml \
-o ./.github/workflows/manual-sync-common-files.yml
curl -sL {{.TEMPLATE_REPO_BASE_URL}}/.github/workflows/manual-update-version.yml \
-o ./.github/workflows/manual-update-version.yml
curl -sL {{.TEMPLATE_REPO_BASE_URL}}/.github/dependabot.yml \
-o ./.github/dependabot.yml
git add .github/workflows/
echo "βœ… Synced GitHub workflows"
1 change: 0 additions & 1 deletion Taskfile.variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ vars:
else
git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "unknown"
fi
PR_TEMPLATE: https://raw.githubusercontent.com/devops-infra/.github/master/PULL_REQUEST_TEMPLATE.md

# Labels for http://label-schema.org/rc1/#build-time-labels
# And for https://github.com/opencontainers/image-spec/blob/master/annotations.md
Expand Down