Skip to content

Commit

Permalink
Release Automation Work (#49)
Browse files Browse the repository at this point in the history
* add automation to release receptor collection upstream and down stream based on the work devtools has done

* bump release version for next version as well
  • Loading branch information
thedoubl3j authored Aug 28, 2023
1 parent 2c318f0 commit a8f6308
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/workflows/ah_token_refresh.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Refresh the automation hub token
# the token expires every 30 days, so we need to refresh it
"on":
schedule:
- cron: '0 12 1,15 * *' # run 12pm on the 1st and 15th of the month
workflow_dispatch:

jobs:
refresh:
uses: ansible/devtools/.github/workflows/ah_token_refresh.yml@main
with:
environment: release
secrets:
ah_token: ${{ secrets.AH_TOKEN }}
14 changes: 14 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Release the ansible collection
"on":
release:
types: [published]

jobs:
release:
uses: ansible/devtools/.github/workflows/release_collection.yml@main
with:
environment: release
secrets:
ah_token: ${{ secrets.AH_TOKEN }}
ansible_galaxy_api_key: ${{ secrets.ANSIBLE_GALAXY_API_KEY }}
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
namespace: ansible
name: receptor
version: 1.1.0
version: 2.0.0
readme: README.md
authors:
- Ansible
Expand Down

0 comments on commit a8f6308

Please sign in to comment.