Skip to content
This repository was archived by the owner on Jul 29, 2026. It is now read-only.
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
68 changes: 68 additions & 0 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Dependabot Auto Merge

on:
pull_request:
types: [opened, synchronize, reopened]

permissions:
pull-requests: write
contents: write

jobs:
dependabot-auto-merge:
name: Auto Merge Dependabot PR
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Fetch PR Details
id: pr
uses: actions/github-script@v7
with:
script: |
const pr = await github.rest.pulls.get({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number,
});
console.log('PR Status:', pr.data.state);
console.log('PR Author:', pr.data.user.login);
return pr.data;

- name: Enable Auto-Merge (Squash)
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const pr = await github.rest.pulls.get({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number,
});

// Enable auto-merge using GraphQL
try {
const result = await github.graphql(`
mutation EnableAutoMerge($pullRequestId:ID!) {
enablePullRequestAutoMerge(input: {
pullRequestId: $pullRequestId
mergeMethod: SQUASH
}) {
pullRequest {
autoMergeRequest {
enabledAt
mergeMethod
}
}
}
}
`, {
pullRequestId: pr.data.node_id,
});

console.log('✓ Auto-merge enabled for PR #' + context.issue.number);
console.log('Merge method: SQUASH');
} catch (error) {
// Auto-merge might already be enabled or PR might need status checks to pass first
console.log('Auto-merge setup (will auto-merge once checks pass):', error.message);
}

5 changes: 3 additions & 2 deletions .github/workflows/prerelease-action-plugins-actions_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
push:
branches: [ "develop" ]
paths:
- "action-plugins/actions_check/**"
- "action-plugins/actions_check/.version"
- "action-plugins/actions_check/**/*.go"

jobs:
check-version:
Expand All @@ -22,7 +23,7 @@ jobs:
working-directory: action-plugins/actions_check
run: |
VERSION=$(cat .version)
if [[ "${VERSION}" =~ -(alpha|beta|rc|a|b)([0-9]*)?$ ]]; then
if [[ "${VERSION}" =~ -(alpha|beta|rc|a|b) ]]; then
echo "is_prerelease=true" >> $GITHUB_OUTPUT
else
echo "is_prerelease=false" >> $GITHUB_OUTPUT
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/prerelease-action-plugins-ansible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
push:
branches: [ "develop" ]
paths:
- "action-plugins/ansible/**"
- "action-plugins/ansible/.version"
- "action-plugins/ansible/**/*.go"

jobs:
check-version:
Expand All @@ -22,7 +23,7 @@ jobs:
working-directory: action-plugins/ansible
run: |
VERSION=$(cat .version)
if [[ "${VERSION}" =~ -(alpha|beta|rc|a|b)([0-9]*)?$ ]]; then
if [[ "${VERSION}" =~ -(alpha|beta|rc|a|b) ]]; then
echo "is_prerelease=true" >> $GITHUB_OUTPUT
else
echo "is_prerelease=false" >> $GITHUB_OUTPUT
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/prerelease-action-plugins-collect_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
push:
branches: [ "develop" ]
paths:
- "action-plugins/collect_data/**"
- "action-plugins/collect_data/.version"
- "action-plugins/collect_data/**/*.go"

jobs:
check-version:
Expand All @@ -22,7 +23,7 @@ jobs:
working-directory: action-plugins/collect_data
run: |
VERSION=$(cat .version)
if [[ "${VERSION}" =~ -(alpha|beta|rc|a|b)([0-9]*)?$ ]]; then
if [[ "${VERSION}" =~ -(alpha|beta|rc|a|b) ]]; then
echo "is_prerelease=true" >> $GITHUB_OUTPUT
else
echo "is_prerelease=false" >> $GITHUB_OUTPUT
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/prerelease-action-plugins-debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
push:
branches: [ "develop" ]
paths:
- "action-plugins/debug/**"
- "action-plugins/debug/.version"
- "action-plugins/debug/**/*.go"

jobs:
check-version:
Expand All @@ -22,7 +23,7 @@ jobs:
working-directory: action-plugins/debug
run: |
VERSION=$(cat .version)
if [[ "${VERSION}" =~ -(alpha|beta|rc|a|b)([0-9]*)?$ ]]; then
if [[ "${VERSION}" =~ -(alpha|beta|rc|a|b) ]]; then
echo "is_prerelease=true" >> $GITHUB_OUTPUT
else
echo "is_prerelease=false" >> $GITHUB_OUTPUT
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/prerelease-action-plugins-git.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
push:
branches: [ "develop" ]
paths:
- "action-plugins/git/**"
- "action-plugins/git/.version"
- "action-plugins/git/**/*.go"

jobs:
check-version:
Expand All @@ -22,7 +23,7 @@ jobs:
working-directory: action-plugins/git
run: |
VERSION=$(cat .version)
if [[ "${VERSION}" =~ -(alpha|beta|rc|a|b)([0-9]*)?$ ]]; then
if [[ "${VERSION}" =~ -(alpha|beta|rc|a|b) ]]; then
echo "is_prerelease=true" >> $GITHUB_OUTPUT
else
echo "is_prerelease=false" >> $GITHUB_OUTPUT
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/prerelease-action-plugins-interaction.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
push:
branches: [ "develop" ]
paths:
- "action-plugins/interaction/**"
- "action-plugins/interaction/.version"
- "action-plugins/interaction/**/*.go"

jobs:
check-version:
Expand All @@ -22,7 +23,7 @@ jobs:
working-directory: action-plugins/interaction
run: |
VERSION=$(cat .version)
if [[ "${VERSION}" =~ -(alpha|beta|rc|a|b)([0-9]*)?$ ]]; then
if [[ "${VERSION}" =~ -(alpha|beta|rc|a|b) ]]; then
echo "is_prerelease=true" >> $GITHUB_OUTPUT
else
echo "is_prerelease=false" >> $GITHUB_OUTPUT
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/prerelease-action-plugins-log.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
push:
branches: [ "develop" ]
paths:
- "action-plugins/log/**"
- "action-plugins/log/.version"
- "action-plugins/log/**/*.go"

jobs:
check-version:
Expand All @@ -22,7 +23,7 @@ jobs:
working-directory: action-plugins/log
run: |
VERSION=$(cat .version)
if [[ "${VERSION}" =~ -(alpha|beta|rc|a|b)([0-9]*)?$ ]]; then
if [[ "${VERSION}" =~ -(alpha|beta|rc|a|b) ]]; then
echo "is_prerelease=true" >> $GITHUB_OUTPUT
else
echo "is_prerelease=false" >> $GITHUB_OUTPUT
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/prerelease-action-plugins-mail.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
push:
branches: [ "develop" ]
paths:
- "action-plugins/mail/**"
- "action-plugins/mail/.version"
- "action-plugins/mail/**/*.go"

jobs:
check-version:
Expand All @@ -22,7 +23,7 @@ jobs:
working-directory: action-plugins/mail
run: |
VERSION=$(cat .version)
if [[ "${VERSION}" =~ -(alpha|beta|rc|a|b)([0-9]*)?$ ]]; then
if [[ "${VERSION}" =~ -(alpha|beta|rc|a|b) ]]; then
echo "is_prerelease=true" >> $GITHUB_OUTPUT
else
echo "is_prerelease=false" >> $GITHUB_OUTPUT
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/prerelease-action-plugins-pattern_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
push:
branches: [ "develop" ]
paths:
- "action-plugins/pattern_check/**"
- "action-plugins/pattern_check/.version"
- "action-plugins/pattern_check/**/*.go"

jobs:
check-version:
Expand All @@ -22,7 +23,7 @@ jobs:
working-directory: action-plugins/pattern_check
run: |
VERSION=$(cat .version)
if [[ "${VERSION}" =~ -(alpha|beta|rc|a|b)([0-9]*)?$ ]]; then
if [[ "${VERSION}" =~ -(alpha|beta|rc|a|b) ]]; then
echo "is_prerelease=true" >> $GITHUB_OUTPUT
else
echo "is_prerelease=false" >> $GITHUB_OUTPUT
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/prerelease-action-plugins-ping.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
push:
branches: [ "develop" ]
paths:
- "action-plugins/ping/**"
- "action-plugins/ping/.version"
- "action-plugins/ping/**/*.go"

jobs:
check-version:
Expand All @@ -22,7 +23,7 @@ jobs:
working-directory: action-plugins/ping
run: |
VERSION=$(cat .version)
if [[ "${VERSION}" =~ -(alpha|beta|rc|a|b)([0-9]*)?$ ]]; then
if [[ "${VERSION}" =~ -(alpha|beta|rc|a|b) ]]; then
echo "is_prerelease=true" >> $GITHUB_OUTPUT
else
echo "is_prerelease=false" >> $GITHUB_OUTPUT
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/prerelease-action-plugins-port_checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
push:
branches: [ "develop" ]
paths:
- "action-plugins/port_checker/**"
- "action-plugins/port_checker/.version"
- "action-plugins/port_checker/**/*.go"

jobs:
check-version:
Expand All @@ -22,7 +23,7 @@ jobs:
working-directory: action-plugins/port_checker
run: |
VERSION=$(cat .version)
if [[ "${VERSION}" =~ -(alpha|beta|rc|a|b)([0-9]*)?$ ]]; then
if [[ "${VERSION}" =~ -(alpha|beta|rc|a|b) ]]; then
echo "is_prerelease=true" >> $GITHUB_OUTPUT
else
echo "is_prerelease=false" >> $GITHUB_OUTPUT
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/prerelease-action-plugins-ssh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
push:
branches: [ "develop" ]
paths:
- "action-plugins/ssh/**"
- "action-plugins/ssh/.version"
- "action-plugins/ssh/**/*.go"

jobs:
check-version:
Expand All @@ -22,7 +23,7 @@ jobs:
working-directory: action-plugins/ssh
run: |
VERSION=$(cat .version)
if [[ "${VERSION}" =~ -(alpha|beta|rc|a|b)([0-9]*)?$ ]]; then
if [[ "${VERSION}" =~ -(alpha|beta|rc|a|b) ]]; then
echo "is_prerelease=true" >> $GITHUB_OUTPUT
else
echo "is_prerelease=false" >> $GITHUB_OUTPUT
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/prerelease-action-plugins-terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
push:
branches: [ "develop" ]
paths:
- "action-plugins/terraform/**"
- "action-plugins/terraform/.version"
- "action-plugins/terraform/**/*.go"

jobs:
check-version:
Expand All @@ -22,7 +23,7 @@ jobs:
working-directory: action-plugins/terraform
run: |
VERSION=$(cat .version)
if [[ "${VERSION}" =~ -(alpha|beta|rc|a|b)([0-9]*)?$ ]]; then
if [[ "${VERSION}" =~ -(alpha|beta|rc|a|b) ]]; then
echo "is_prerelease=true" >> $GITHUB_OUTPUT
else
echo "is_prerelease=false" >> $GITHUB_OUTPUT
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/prerelease-action-plugins-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
push:
branches: [ "develop" ]
paths:
- "action-plugins/test/**"
- "action-plugins/test/.version"
- "action-plugins/test/**/*.go"

jobs:
check-version:
Expand All @@ -22,7 +23,7 @@ jobs:
working-directory: action-plugins/test
run: |
VERSION=$(cat .version)
if [[ "${VERSION}" =~ -(alpha|beta|rc|a|b)([0-9]*)?$ ]]; then
if [[ "${VERSION}" =~ -(alpha|beta|rc|a|b) ]]; then
echo "is_prerelease=true" >> $GITHUB_OUTPUT
else
echo "is_prerelease=false" >> $GITHUB_OUTPUT
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/prerelease-action-plugins-wait.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
push:
branches: [ "develop" ]
paths:
- "action-plugins/wait/**"
- "action-plugins/wait/.version"
- "action-plugins/wait/**/*.go"

jobs:
check-version:
Expand All @@ -22,7 +23,7 @@ jobs:
working-directory: action-plugins/wait
run: |
VERSION=$(cat .version)
if [[ "${VERSION}" =~ -(alpha|beta|rc|a|b)([0-9]*)?$ ]]; then
if [[ "${VERSION}" =~ -(alpha|beta|rc|a|b) ]]; then
echo "is_prerelease=true" >> $GITHUB_OUTPUT
else
echo "is_prerelease=false" >> $GITHUB_OUTPUT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
push:
branches: [ "develop" ]
paths:
- "endpoint-plugins/alertmanager/**"
- "endpoint-plugins/alertmanager/.version"
- "endpoint-plugins/alertmanager/**/*.go"

jobs:
check-version:
Expand All @@ -22,7 +23,7 @@ jobs:
working-directory: endpoint-plugins/alertmanager
run: |
VERSION=$(cat .version)
if [[ "${VERSION}" =~ -(alpha|beta|rc|a|b)([0-9]*)?$ ]]; then
if [[ "${VERSION}" =~ -(alpha|beta|rc|a|b) ]]; then
echo "is_prerelease=true" >> $GITHUB_OUTPUT
else
echo "is_prerelease=false" >> $GITHUB_OUTPUT
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release-action-plugins-actions_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
push:
branches: [ "main" ]
paths:
- "action-plugins/actions_check/**"
- "action-plugins/actions_check/.version"
- "action-plugins/actions_check/**/*.go"

jobs:
build-and-release:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release-action-plugins-ansible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
push:
branches: [ "main" ]
paths:
- "action-plugins/ansible/**"
- "action-plugins/ansible/.version"
- "action-plugins/ansible/**/*.go"

jobs:
build-and-release:
Expand Down
Loading