This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2023-06-12 12:01:05 +00:00
|
|
|
name: authentik-on-release-next-branch
|
2023-06-12 10:25:24 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: "0 12 * * *" # every day at noon
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
update-next:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
environment: internal-production
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
ref: main
|
2023-06-12 12:19:25 +00:00
|
|
|
- id: main-state
|
2023-06-12 10:25:24 +00:00
|
|
|
run: |
|
2023-06-12 21:57:09 +00:00
|
|
|
state=$(curl -fsSL -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ github.token }}" "https://api.github.com/repos/${{ github.repository }}/commits/HEAD/status" | jq -r '.state')
|
2023-06-12 12:19:25 +00:00
|
|
|
echo "state=${state}" >> $GITHUB_OUTPUT
|
|
|
|
- if: ${{ steps.main-state.outputs.state == 'success' }}
|
2023-06-12 10:25:24 +00:00
|
|
|
run: |
|
|
|
|
git push origin next --force
|