name: Post release on: workflow_dispatch: push: # Pattern matched against refs/tags tags: - "*" permissions: contents: write jobs: release: runs-on: ubuntu-latest steps: - name: Generate GitHub App token id: generate-token uses: actions/create-github-app-token@7e473efe3cb98aa54f8d4bac15400b15fad77d94 with: app-id: ${{ secrets.CI_CAL_APP_ID }} private-key: ${{ secrets.CI_CAL_APP_PRIVATE_KEY }} repositories: 'cal.com' - name: Checkout code uses: actions/checkout@v4 with: fetch-depth: 0 ref: 'main' token: ${{ steps.generate-token.outputs.token }} - name: Configure git run: | git config --local user.email "github-actions@github.com" git config --local user.name "GitHub Actions" - run: git push origin +main:production