diff options
author | Reza Mubeen <mrezam@hotmail.com> | 2025-06-12 07:01:09 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-12 13:01:09 +0100 |
commit | 4707dd30d44867d9195689de6619d87fcc04c359 (patch) | |
tree | 39b5b93fd148663dada9db3e10c0aa2d3ba15647 | |
parent | f02bc8b2af6de47962e3670e719d756df0cba029 (diff) | |
download | vyos.vyos-4707dd30d44867d9195689de6619d87fcc04c359.tar.gz vyos.vyos-4707dd30d44867d9195689de6619d87fcc04c359.zip |
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
-rw-r--r-- | .github/workflows/refresh_token.yml | 14 |
1 files changed, 14 insertions, 0 deletions
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 }} |