-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Update GH Actions to Ubuntu 24.04 and switch from release tags to…
… hashes (#446)
- Loading branch information
Showing
6 changed files
with
47 additions
and
47 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
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,25 +1,25 @@ | ||
--- | ||
name: Ansible Galaxy import | ||
name: Ansible Galaxy Role Import | ||
on: | ||
release: | ||
types: | ||
- published | ||
types: [published] | ||
workflow_dispatch: | ||
permissions: read-all | ||
jobs: | ||
galaxy: | ||
name: Galaxy | ||
runs-on: ubuntu-22.04 | ||
ansible-galaxy: | ||
name: Import role to Ansible Galaxy | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Check out the codebase | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
|
||
- name: Set up Python 3 | ||
uses: actions/setup-python@v5 | ||
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1 | ||
with: | ||
python-version: 3.x | ||
|
||
- name: Install Ansible | ||
- name: Install Ansible core | ||
run: pip3 install -r .github/workflows/requirements/requirements_galaxy.txt | ||
|
||
- name: Import release to Ansible Galaxy | ||
- name: Import role releases to Ansible Galaxy | ||
run: ansible-galaxy role import --api-key ${{ secrets.GALAXY_API_KEY }} $(echo ${{ github.repository }} | cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2) |
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,20 @@ | ||
--- | ||
name: Release Drafter | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request_target: | ||
types: [opened, reopened, synchronize] | ||
permissions: read-all | ||
jobs: | ||
release-draft: | ||
name: Update release draft | ||
runs-on: ubuntu-24.04 | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
steps: | ||
- name: Run release drafter | ||
uses: release-drafter/release-drafter@3f0f87098bd6b5c5b9a36d49c41d998ea58f9348 # v6.0.0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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