mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-06-07 06:42:22 +00:00
fdf8dde38a
Recommended by `zizmor`. See https://docs.zizmor.sh/audits/#artipacked for an explanation.
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
# Copyright 2025 New Vector Ltd.
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
# Please see LICENSE files in the repository root for full details.
|
|
|
|
name: Merge back a reference to main
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
sha:
|
|
required: true
|
|
type: string
|
|
secrets:
|
|
BOT_GITHUB_TOKEN:
|
|
required: true
|
|
|
|
jobs:
|
|
merge-back:
|
|
name: Merge back the reference to main
|
|
runs-on: ubuntu-24.04
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
steps:
|
|
- name: Checkout the code
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
with:
|
|
sparse-checkout: |
|
|
.github/scripts
|
|
persist-credentials: false
|
|
|
|
- name: Push branch and open a PR
|
|
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
|
env:
|
|
SHA: ${{ inputs.sha }}
|
|
with:
|
|
github-token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
|
script: |
|
|
const script = require('./.github/scripts/merge-back.cjs');
|
|
await script({ core, github, context });
|