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.
authentik/.github/workflows/release-next-branch.yml
Jens Langhammer e679066fca
ci: don't write CI status to file
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
2023-06-12 14:01:05 +02:00

26 lines
742 B
YAML

name: authentik-on-release-next-branch
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
- id: main-status
run: |
status=$(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 '.status')
echo "status=${status}" >> $GITHUB_OUTPUT
- if: ${{ steps.main-status.outputs.status == 'success' }}
run: |
git push origin next --force