Skip to content

Commit

Permalink
chore: repo-ansible run #0000
Browse files Browse the repository at this point in the history
  • Loading branch information
mhitza committed Jan 21, 2025
1 parent 9528db5 commit 9c2b1f3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/10-review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ jobs:
# Don't enforce commit conventions checks for Dependabot
if: github.actor != 'dependabot[bot]'
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/checkout@v4

# interesting alternative: https://github.com/cocogitto/cocogitto
- name: Conventional commit checker
uses: webiny/[email protected]
- uses: webiny/[email protected]
# XXX: normal action versioning syntax (`@v1`) doesn't work with this action,
# possibly because not published on the GitHub marketplace

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Managed by https://github.com/linkorb/repo-ansible. Manual changes will be overwritten.
name: Auto-merge Dependabot PRs
on: pull_request_target

Expand All @@ -10,12 +11,10 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
- id: metadata
uses: dependabot/fetch-metadata@v2

- name: Enable auto-merge for Dependabot PRs
if: steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch'
- if: steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch'
run: gh pr merge --merge "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Managed by https://github.com/linkorb/repo-ansible. Manual changes will be overwritten.
name: Auto-run repo-ansible

on:
Expand All @@ -6,12 +7,13 @@ on:
pull_request_target:
paths:
- 'repo.yaml'
- 'docs/partials/*.md'
push:
branches:
- main
- master
paths:
- 'repo.yaml'
- 'docs/partials/*.md'

permissions:
contents: write # allow git commits & push
Expand Down Expand Up @@ -61,7 +63,7 @@ jobs:
- if: ${{ env.IS_PULL_REQUEST == '1' && env.REPOSITORY_CHANGED == '1' }}
name: comment with changes
name: bot comment about repo-ansible detected changes
uses: actions/github-script@v7
with:
script: |
Expand All @@ -70,7 +72,7 @@ jobs:
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `Following repo-ansible changes will be applied when merged to main/master branch
body: `Once PR is merged, repo-ansible will run on main and the following changes will apply
\`\`\`shell
${changes}
Expand Down
2 changes: 1 addition & 1 deletion repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ license: mit
license_year: 2024
name: repo-ansible
type: other
version: v0.10.1
version: v0.11.0
visibility: public

0 comments on commit 9c2b1f3

Please sign in to comment.