From 4707dd30d44867d9195689de6619d87fcc04c359 Mon Sep 17 00:00:00 2001 From: Reza Mubeen Date: Thu, 12 Jun 2025 07:01:09 -0500 Subject: Add GitHub Actions workflow to refresh automation hub token (#423) * Add GitHub Actions workflow to refresh automation hub token * Update refresh_token.yml https://github.com/vyos/vyos.vyos/pull/423#discussion_r2140946852 As per @andamasov * Fix indentation in refresh_token.yml cron schedule --- .github/workflows/refresh_token.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/refresh_token.yml (limited to '.github/workflows') diff --git a/.github/workflows/refresh_token.yml b/.github/workflows/refresh_token.yml new file mode 100644 index 00000000..a75f9633 --- /dev/null +++ b/.github/workflows/refresh_token.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/devtools/.github/workflows/ah_token_refresh.yml@v22.5.0 + with: + environment: release + secrets: + ah_token: ${{ secrets.AH_TOKEN }} -- cgit v1.2.3