Skip to content

Commit

Permalink
github workflow definition to run token refreshes
Browse files Browse the repository at this point in the history
  • Loading branch information
yigitpolat committed Nov 5, 2024
1 parent 8c2ecd8 commit 8e1238d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/token_refresh_automation_hub.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/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 .github/workflows/token_refresh_rh_subscription_manager.yml
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 }}

0 comments on commit 8e1238d

Please sign in to comment.