Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update name of repo #6

Merged
merged 1 commit into from
Jan 12, 2024
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
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
version: 2
updates:
- package-ecosystem: "ansible-github-actions"
- package-ecosystem: "ansible-content-actions"
directory: "/"
schedule:
interval: daily
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
fetch-depth: "0"
- name: Validate changelog
uses: >-
ansible/ansible-github-actions/.github/actions/ansible_validate_changelog@main
ansible/ansible-content-actions/.github/actions/ansible_validate_changelog@main
4 changes: 2 additions & 2 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
with:
python-version: "3.11"
- name: "Check for tox-ansible.ini file, else add default"
uses: ansible/ansible-github-actions/.github/actions/add_tox_ansible@main
uses: ansible/ansible-content-actions/.github/actions/add_tox_ansible@main
- name: "Install tox-ansible, includes tox"
run: "python -m pip install git+https://github.com/ansible/tox-ansible.git"
- name: Generate matrix
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
with:
python-version: "${{ matrix.entry.python }}"
- name: "Check for tox-ansible.ini file, else add default"
uses: ansible/ansible-github-actions/.github/actions/add_tox_ansible@main
uses: ansible/ansible-content-actions/.github/actions/add_tox_ansible@main
- name: "Install tox-ansible, includes tox"
run: python -m pip install tox-ansible
- name: Install build toolchain and openssl headers on Linux
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ name: Release collection
required: false
jobs:
release_automation_hub:
uses: ansible/ansible-github-actions/.github/workflows/release_ah.yaml@main
uses: ansible/ansible-content-actions/.github/workflows/release_ah.yaml@main
with:
environment: release
secrets:
ah_token: "${{ secrets.ah_token }}"
release_galaxy:
uses: ansible/ansible-github-actions/.github/workflows/release_galaxy.yaml@main
uses: ansible/ansible-content-actions/.github/workflows/release_galaxy.yaml@main
needs:
- release_automation_hub
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sanity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: "Install tox-ansible, includes tox"
run: "python -m pip install git+https://github.com/ansible/tox-ansible.git"
- name: "Check for tox-ansible.ini file, else add default"
uses: ansible/ansible-github-actions/.github/actions/add_tox_ansible@main
uses: ansible/ansible-content-actions/.github/actions/add_tox_ansible@main
- name: Generate matrix
id: generate-matrix
run: >
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
- name: "Install tox-ansible, includes tox"
run: python -m pip install tox-ansible
- name: "Check for tox-ansible.ini file, else add default"
uses: ansible/ansible-github-actions/.github/actions/add_tox_ansible@main
uses: ansible/ansible-content-actions/.github/actions/add_tox_ansible@main
- name: Run tox sanity tests
run: >-
python -m tox --ansible -e ${{ matrix.entry.name }} --conf
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
with:
python-version: "3.11"
- name: "Check for tox-ansible.ini file, else add default"
uses: ansible/ansible-github-actions/.github/actions/add_tox_ansible@main
uses: ansible/ansible-content-actions/.github/actions/add_tox_ansible@main
- name: "Install tox-ansible, includes tox"
run: "python -m pip install git+https://github.com/ansible/tox-ansible.git"
- name: Generate matrix
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
- name: "Install tox-ansible, includes tox"
run: python -m pip install tox-ansible
- name: "Check for tox-ansible.ini file, else add default"
uses: ansible/ansible-github-actions/.github/actions/add_tox_ansible@main
uses: ansible/ansible-content-actions/.github/actions/add_tox_ansible@main
- name: Install build toolchain and openssl headers on Linux
shell: bash
run: sudo apt update && sudo apt install build-essential libssl-dev
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Combine GitHub Actions to create a streamlined workflow for testing Ansible coll
## Usage

To use the action add the following step to your workflow file (e.g.
`ansible/ansible-github-actions/.github/workflows/sanity.yaml@main`)
`ansible/ansible-content-actions/.github/workflows/sanity.yaml@main`)

Filename: `test.yaml`

Expand All @@ -28,16 +28,16 @@ on:

jobs:
changelog:
uses: ansible/ansible-github-actions/.github/workflows/changelog.yaml@main
uses: ansible/ansible-content-actions/.github/workflows/changelog.yaml@main
if: github.event_name == 'pull_request'
ansible-lint:
uses: ansible/ansible-github-actions/.github/workflows/ansible_lint.yaml@main
uses: ansible/ansible-content-actions/.github/workflows/ansible_lint.yaml@main
sanity:
uses: ansible/ansible-github-actions/.github/workflows/sanity.yaml@main
uses: ansible/ansible-content-actions/.github/workflows/sanity.yaml@main
unit-galaxy:
uses: ansible/ansible-github-actions/.github/workflows/unit.yaml@main
uses: ansible/ansible-content-actions/.github/workflows/unit.yaml@main
integration:
uses: ansible/ansible-github-actions/.github/workflows/integration.yaml@main
uses: ansible/ansible-content-actions/.github/workflows/integration.yaml@main
all_green:
if: ${{ always() }}
needs:
Expand Down Expand Up @@ -80,8 +80,8 @@ Please read [Contribution guidelines] if you wish to contribute.

# Licensing

The ansible-github-actions project is distributed as [MIT License].
The ansible-content-actions project is distributed as [MIT License].

# Authors

ansible-github-actions is owned by [Ansible] by [Red Hat] project.
ansible-content-actions is owned by [Ansible] by [Red Hat] project.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: ansible-github-actions
name: ansible-content-actions
description: This is a monolithic action for Ansible content testing
author: Ansible Devtools Team
branding:
Expand Down
10 changes: 5 additions & 5 deletions docs/ci.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ on:

jobs:
changelog:
uses: ansible/ansible-github-actions/.github/workflows/changelog.yaml@main
uses: ansible/ansible-content-actions/.github/workflows/changelog.yaml@main
if: github.event_name == 'pull_request'
ansible-lint:
uses: ansible/ansible-github-actions/.github/workflows/ansible_lint.yaml@main
uses: ansible/ansible-content-actions/.github/workflows/ansible_lint.yaml@main
sanity:
uses: ansible/ansible-github-actions/.github/workflows/sanity.yaml@main
uses: ansible/ansible-content-actions/.github/workflows/sanity.yaml@main
unit-galaxy:
uses: ansible/ansible-github-actions/.github/workflows/unit.yaml@main
uses: ansible/ansible-content-actions/.github/workflows/unit.yaml@main
integration:
uses: ansible/ansible-github-actions/.github/workflows/integration.yaml@main
uses: ansible/ansible-content-actions/.github/workflows/integration.yaml@main
all_green:
if: ${{ always() }}
needs:
Expand Down
32 changes: 27 additions & 5 deletions docs/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This GitHub action releases the collection in Ansible Automation Hub and Ansible
`AH_TOKEN`: The Automation Hub token required for to interact with Ansible Automation Hub.
`ANSIBLE_GALAXY_API_KEY`: A Galaxy token required to interact with Ansible Galaxy.

Note - ansible-github-actions/release.yaml uses release_ah.yaml and release_galaxy.yaml internally.
Note - ansible-content-actions/release.yaml uses release_ah.yaml and release_galaxy.yaml internally.

Filename: `release.yaml`

Expand All @@ -18,7 +18,7 @@ on:

jobs:
release:
uses: ansible/ansible-github-actions/.github/workflows/release.yaml@main
uses: ansible/ansible-content-actions/.github/workflows/release.yaml@main
with:
environment: release
secrets:
Expand All @@ -34,20 +34,20 @@ The release works in two parts, Automation hub release and then Ansible Galaxy r

Example showing how only Automation hub release can be made, only `ah_token` would be required in those cases.

### The release on AH workflow
### Release on AH only, workflow

Filename: `release.yaml`

```
---
name: "Release collection"
name: "Release collection on AH"
on:
release:
types: [published]

jobs:
release_automation_hub:
uses: ansible/ansible-github-actions/.github/workflows/release_ah.yaml@main
uses: ansible/ansible-content-actions/.github/workflows/release_ah.yaml@main
with:
environment: release
secrets:
Expand All @@ -56,6 +56,28 @@ jobs:

Same for galaxy releases only, please refer to the `release_galay.yaml` and specify `ansible_galaxy_api_key` secret.

### Release on Galaxy only, workflow

Filename: `release.yaml`

```
---
name: "Release collection on Galaxy"
on:
release:
types: [published]

jobs:
release_automation_hub:
uses: ansible/ansible-content-actions/.github/workflows/release_galaxy.yaml@main
with:
environment: release
secrets:
ah_token: ${{ secrets.ANSIBLE_GALAXY_API_KEY }}
```

Same for galaxy releases only, please refer to the `release_galay.yaml` and specify `ansible_galaxy_api_key` secret.

## Detailed release process

### Things to make sure of before release:
Expand Down
20 changes: 10 additions & 10 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ on:

jobs:
changelog:
uses: ansible/ansible-github-actions/.github/workflows/changelog.yaml@main
uses: ansible/ansible-content-actions/.github/workflows/changelog.yaml@main
if: github.event_name == 'pull_request'
ansible-lint:
uses: ansible/ansible-github-actions/.github/workflows/ansible_lint.yaml@main
uses: ansible/ansible-content-actions/.github/workflows/ansible_lint.yaml@main
sanity:
uses: ansible/ansible-github-actions/.github/workflows/sanity.yaml@main
uses: ansible/ansible-content-actions/.github/workflows/sanity.yaml@main
unit-galaxy:
uses: ansible/ansible-github-actions/.github/workflows/unit.yaml@main
uses: ansible/ansible-content-actions/.github/workflows/unit.yaml@main
integration:
uses: ansible/ansible-github-actions/.github/workflows/integration.yaml@main
uses: ansible/ansible-content-actions/.github/workflows/integration.yaml@main
all_green:
if: ${{ always() }}
needs:
Expand Down Expand Up @@ -64,7 +64,7 @@ This GitHub action releases the collection in Ansible Automation Hub and Ansible
`AH_TOKEN`: The Automation Hub token required for to interact with Ansible Automation Hub.
`ANSIBLE_GALAXY_API_KEY`: A Galaxy token required to interact with Ansible Galaxy.

Note - ansible-github-actions/release.yaml uses release_ah.yaml and release_galaxy.yaml internally.
Note - ansible-content-actions/release.yaml uses release_ah.yaml and release_galaxy.yaml internally.

Filename: `release.yaml`

Expand All @@ -77,7 +77,7 @@ on:

jobs:
release:
uses: ansible/ansible-github-actions/.github/workflows/release.yaml@main
uses: ansible/ansible-content-actions/.github/workflows/release.yaml@main
with:
environment: release
secrets:
Expand All @@ -102,7 +102,7 @@ on:
types: [opened, labeled, unlabeled, synchronize]
jobs:
check_label:
uses: ansible/ansible-github-actions/.github/workflows/check_label.yaml@main
uses: ansible/ansible-content-actions/.github/workflows/check_label.yaml@main
```

## The release drafter workflow (previously push)
Expand All @@ -127,7 +127,7 @@ env:
ANSIBLE_COLLECTIONS_PATHS: ./
jobs:
update_release_draft:
uses: ansible/ansible-github-actions/.github/workflows/draft_release.yaml@main
uses: ansible/ansible-content-actions/.github/workflows/draft_release.yaml@main
with:
repo: ${{ github.event.pull_request.head.repo.full_name }}
secrets:
Expand All @@ -152,7 +152,7 @@ on:

jobs:
refresh:
uses: ansible/ansible-github-actions/.github/workflows/refresh_ah_token.yaml@main
uses: ansible/ansible-content-actions/.github/workflows/refresh_ah_token.yaml@main
with:
environment: release
secrets:
Expand Down
Loading