summaryrefslogtreecommitdiff
path: root/.github/workflows/ah_token_refresh.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/ah_token_refresh.yml')
-rw-r--r--.github/workflows/ah_token_refresh.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/.github/workflows/ah_token_refresh.yml b/.github/workflows/ah_token_refresh.yml
new file mode 100644
index 00000000..096685dd
--- /dev/null
+++ b/.github/workflows/ah_token_refresh.yml
@@ -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@v22.5.0
+ with:
+ environment: release
+ secrets:
+ ah_token: ${{ secrets.AH_TOKEN }}