Skip to content

Commit 22dc0a4

Browse files
reference generic release job (#64)
* reference generic release job * fix lint workflow, update reference --------- Co-authored-by: Rohit Thakur <rohitthakur2590@outlook.com>
1 parent 2eece9b commit 22dc0a4

1 file changed

Lines changed: 6 additions & 19 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,9 @@ on: # yamllint disable-line rule:truthy
66
types: [published]
77

88
jobs:
9-
release_ah:
10-
runs-on: ubuntu-latest
11-
environment: ah
12-
steps:
13-
- uses: actions/checkout@v3
14-
15-
- name: "Publish collection on ah"
16-
run: |
17-
ansible-galaxy collection build -v --force
18-
TARBALL=$(ls -1 ./*.tar.gz)
19-
cat << EOF > ansible.cfg
20-
[galaxy]
21-
server_list = rh_automation_hub
22-
[galaxy_server.rh_automation_hub]
23-
url=https://cloud.redhat.com/api/automation-hub/
24-
auth_url=https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token
25-
token=${{ secrets.AH_TOKEN }}
26-
EOF
27-
ansible-galaxy collection publish "${TARBALL}"
9+
release_automation_hub:
10+
uses: ansible/devtools/.github/workflows/release_ah.yml@main
11+
with:
12+
environment: ah
13+
secrets:
14+
ah_token: ${{ secrets.AH_TOKEN }}

0 commit comments

Comments
 (0)