-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from manala/cleanup
Cleanup
- Loading branch information
Showing
10 changed files
with
83 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
version: 2 | ||
|
||
updates: | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: weekly |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
name: Collection | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
collection: | ||
name: Collection | ||
release: | ||
name: Release | ||
runs-on: ubuntu-24.04 | ||
if: github.event.head_commit.message == 'Release' | ||
steps: | ||
|
||
- name: Notify Slack of starting | ||
- name: Notify Slack - Starting | ||
uses: act10ns/slack@v2 | ||
with: | ||
status: starting | ||
|
@@ -23,59 +23,57 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Create ansible galaxy token | ||
- name: Set ansible galaxy token | ||
run: | | ||
cat << EOF > ./galaxy_token | ||
token: ${{ secrets.ANSIBLE_GALAXY_TOKEN }} | ||
EOF | ||
- name: Env | ||
run: | | ||
cp .env .env.local | ||
- name: Set up system | ||
uses: ./.manala/github/system/setup | ||
|
||
- name: Retrieve version from galaxy.yml | ||
id: version | ||
- name: Get metadata from galaxy.yml | ||
id: metadata | ||
uses: CumulusDS/[email protected] | ||
with: | ||
file: ./galaxy.yml | ||
version: version | ||
|
||
- name: Build Collection | ||
- name: Build | ||
id: build | ||
run: | | ||
make collection.build | ||
make build VERBOSE=1 | ||
- name: Create artifact from collection build | ||
- name: Upload build artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
path: ./manala-path-${{ steps.version.outputs.version }}.tar.gz | ||
name: manala-path-${{ steps.version.outputs.version }} | ||
path: ./manala-path-${{ steps.metadata.outputs.version }}.tar.gz | ||
name: manala-path-${{ steps.metadata.outputs.version }} | ||
retention-days: 1 | ||
|
||
- name: Publish Collection | ||
- name: Publish | ||
id: publish | ||
run: | | ||
make collection.publish | ||
make publish VERBOSE=1 | ||
- name: Get Changelog Entry | ||
- name: Get Changelog entry | ||
id: changelog | ||
uses: mindsers/changelog-reader-action@v2 | ||
with: | ||
path: ./CHANGELOG.md | ||
version: ${{ steps.version.outputs.version }} | ||
version: ${{ steps.metadata.outputs.version }} | ||
|
||
- name: Create Github Release | ||
- name: Create GitHub Release | ||
id: release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
name: manala-path ${{ steps.version.outputs.version }} | ||
tag: ${{ steps.version.outputs.version }} | ||
name: manala-path ${{ steps.metadata.outputs.version }} | ||
tag: ${{ steps.metadata.outputs.version }} | ||
body: ${{ steps.changelog.outputs.changes }} | ||
artifacts: ./manala-path-${{ steps.version.outputs.version }}.tar.gz | ||
artifacts: ./manala-path-${{ steps.metadata.outputs.version }}.tar.gz | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
skipIfReleaseExists: true | ||
|
||
- name: Notify Slack of job status | ||
- name: Notify Slack - Status | ||
uses: act10ns/slack@v2 | ||
with: | ||
status: ${{ job.status }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
|
||
# This playbook example contains simple use cases that illustrate the basics functionality of manala.path.path module. | ||
|
||
- name: Examples - Simple | ||
gather_facts: false | ||
hosts: localhost | ||
tasks: | ||
|
||
- name: Ensure a directory exists at path | ||
manala.path.path: | ||
path: /tmp/directory | ||
|
||
- name: Ensure the specified path (file or directory) is absent | ||
manala.path.path: | ||
path: /tmp/file | ||
state: absent | ||
|
||
- name: Ensure the specified file at path contains content | ||
manala.path.path: | ||
path: /tmp/file_content | ||
content: | | ||
Hello World! | ||
- name: Ensure the specified file at path contains rendered template content | ||
manala.path.path: | ||
path: /tmp/file_template | ||
template: template.j2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Hello : {{ 'World' }} | ||
Hello {{ 'World' }}! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,6 @@ readme: README.md | |
authors: | ||
- Manala <[email protected]> | ||
|
||
|
||
### OPTIONAL but strongly recommended | ||
# A short summary description of the collection | ||
description: path handling | ||
|
@@ -70,10 +69,3 @@ build_ignore: | |
- Makefile | ||
- manala-path-* | ||
- tests | ||
|
||
# A dict controlling use of manifest directives used in building the collection artifact. The key 'directives' is a | ||
# list of MANIFEST.in style | ||
# L(directives,https://packaging.python.org/en/latest/guides/using-manifest-in/#manifest-in-commands). The key | ||
# 'omit_default_directives' is a boolean that controls whether the default directives are used. Mutually exclusive | ||
# with 'build_ignore' | ||
# manifest: null |