-
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.
github workflow definition to run token refreshes
- Loading branch information
1 parent
8c2ecd8
commit 8e1238d
Showing
2 changed files
with
28 additions
and
0 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
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/team-devtools/.github/workflows/ah_token_refresh.yml@main | ||
with: | ||
environment: release | ||
secrets: | ||
ah_token: ${{ secrets.RH_AUTOMATION_HUB_TOKEN }} |
14 changes: 14 additions & 0 deletions
14
.github/workflows/token_refresh_rh_subscription_manager.yml
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,14 @@ | ||
--- | ||
name: Refresh the RHSM 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/team-devtools/.github/workflows/ah_token_refresh.yml@main | ||
with: | ||
environment: release | ||
secrets: | ||
ah_token: ${{ secrets.RHSM_TOKEN }} |