-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6103494
commit 831d2a3
Showing
1 changed file
with
34 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -30,6 +30,8 @@ The API Key for your personal Galaxy account. Found under https://galaxy.ansible | |
|
||
```yaml | ||
--- | ||
name: GitHub Action | ||
|
||
on: | ||
- push | ||
|
||
|
@@ -40,7 +42,38 @@ jobs: | |
- name: checkout | ||
uses: actions/checkout@v2 | ||
- name: galaxy | ||
uses: robertdebock/galaxy-action@master | ||
uses: robertdebock/[email protected] | ||
with: | ||
galaxy_api_key: ${{ secrets.galaxy_api_key }} | ||
``` | ||
Here is a another example that uses molecule to test the role and this Galaxy action to release: | ||
```yaml | ||
name: GitHub Action | ||
|
||
on: | ||
- push | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
path: "${{ github.repository }}" | ||
- name: molecule | ||
uses: robertdebock/[email protected] | ||
with: | ||
image: ${{ matrix.image }} | ||
release: | ||
needs: | ||
- test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: galaxy | ||
uses: robertdebock/[email protected] | ||
with: | ||
galaxy_api_key: ${{ secrets.galaxy_api_key }} | ||
``` |