Skip to content

Commit

Permalink
Happy Newmanium 2024/Update Role.
Browse files Browse the repository at this point in the history
  • Loading branch information
buluma committed Jan 2, 2024
1 parent 774d0c0 commit 540a4ea
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 33 deletions.
11 changes: 6 additions & 5 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
---
name-template: 'v$RESOLVED_VERSION 🌈'
tag-template: 'v$RESOLVED_VERSION'
name-template: 'v$NEXT_MINOR_VERSION'
tag-template: 'v$NEXT_MINOR_VERSION'
categories:
- title: '🚀 Features'
labels:
- 'feature'
- 'enhancement'
- title: '🐛 Bug Fixes'
- 'dependencies'
- title: '🐛 Role Fixes'
labels:
- 'fix'
- 'bugfix'
Expand All @@ -25,8 +26,8 @@ version-resolver:
patch:
labels:
- 'patch'
default: patch
default: minor
template: |
## Rifle, Rifle, Rifle!
## What’s Changed
$CHANGES
2 changes: 1 addition & 1 deletion .github/workflows/gitlab_trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
channel: "#ansible"
message: Starting buluma.ansible_lint GitLab Trigger...
if: always()
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Mirror + trigger CI
uses: buluma/gitlab-mirror-ci-action@1.0.6
with:
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,13 @@ jobs:
- image: "docker-ubuntu-systemd"
tag: "focal"
- image: "docker-ubuntu-systemd"
tag: "lunar"
tag: "bionic"
steps:
- name: checkout
- name: Checkout Role
uses: actions/checkout@v4
with:
path: "${{ github.repository }}"
# - name: disable apparmor for mysql
# run: sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/
# - name: parse apparmor for mysql
# run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
- name: molecule
- name: Running Molecule Test
uses: buluma/molecule-action@v6.0.0
with:
image: ${{ matrix.config.image }}
Expand Down
30 changes: 19 additions & 11 deletions .github/workflows/release_drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: Release Drafter

on:
push:
# branches to consider in the event; optional, defaults to all
# branches to consider in the event; optional, defaults to default
branches:
- master
- main
Expand All @@ -20,43 +20,51 @@ on:
# Only following types are handled by the action, but one can default to all as well
types: [opened, reopened, synchronize]

permissions:
contents: write

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
update_release_draft:
permissions:
# write permission is required to create a github release
contents: write
# write permission is required for autolabeler
# otherwise, read permission is required at least
pull-requests: write
runs-on: ubuntu-latest
steps:

# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
# with:
# config-name: my-config.yml
# disable-autolabeler: true
with:
config-name: release-drafter.yml
disable-autolabeler: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
changelog_draft:
runs-on: ubuntu-latest

steps:
- name: Checkout dj-wasabi-release repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: dj-wasabi/dj-wasabi-release
path: dj-wasabi-release

- name: Checkout current repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: master

path: ${{ github.event.repository.default_branch }}
- name: Commit Changelog file
run: |
# We are cloned in the 'main' directory and the dj-wasabi-release
# repository is the 'dj-wasabi-release' next to 'main'
cd master
# We are cloned in the 'default' directory and the dj-wasabi-release
# repository is the 'dj-wasabi-release' next to 'default'
cd ${{ github.event.repository.default_branch }}
# Generate CHANGELOG.md file
../dj-wasabi-release/release.sh -d
# Let commit the changes if there are any? (Well there should be!)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
steps:
- uses: "actions/checkout@v4"
- name: "TODO to Issue"
uses: "buluma/todo-to-issue-action@v2.0.1"
uses: "buluma/todo-to-issue-action@v2.0.2"
id: "todo"
with:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
12 changes: 6 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,29 +29,29 @@ In you own GitHub namespace, make the required changes.

I typically do that by cloning the repository (in your namespace) locally:

```
```shell
git clone git@github.com:YOURNAMESPACE/ansible-role-ansible_lint.git
```

Now you can start to edit on your laptop/PC.
Now you can start to edit on your laptop.

### [4. Optionally: test your changes](#4-optionally-test-your-changes)

Install [molecule](https://molecule.readthedocs.io/en/stable/) and [Tox](https://tox.readthedocs.io/):

```
```shell
pip install molecule tox ansible-lint docker
```

And run `molecule test`. If you want to test a specific distribution, set `image` and optionally `tag`:

```
```shell
image=centos tag=7 molecule test
```

Once it start to work, you can test multiple version of Ansible:

```
```shell
image=centos tag=7 tox
```

Expand All @@ -69,7 +69,7 @@ In the comment-box, you can [refer to the issue number](https://help.github.com/

### [7. Wait](#7-wait)

Now I'll get a message that you've added some code. Thank you, trully.
Now I'll get a message that you've added some code. Thank you, really.

CI starts to test your changes once pull request is reviewed. You can follow the progress on GitHub.

2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,3 @@ If you find issues, please register them in [GitHub](https://github.com/buluma/a

[Shadow Walker](https://buluma.github.io/)


Template inspired by [Robert de Bock](https://github.com/robertdebock)

0 comments on commit 540a4ea

Please sign in to comment.