ansible.utils/.github/workflows/token_refresh.yml

18 lines
470 B
YAML

on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
refresh:
runs-on: ubuntu-latest
environment: ah
steps:
- name: Refresh to AH token
run: >-
curl https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token
-d grant_type=refresh_token
-d client_id=cloud-services
-d refresh_token="${{ secrets.AH_TOKEN }}"
--fail --silent --show-error --output /dev/null