-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
40 lines (36 loc) · 1.04 KB
/
uplift-merges.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
name: Uplift Merges
on:
workflow_dispatch:
inputs:
dryRun:
type: boolean
description: Dry run
default: true
permissions:
contents: read
jobs:
uplift:
name: Uplift
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Configure for push
if: ${{ !inputs.dryRun }}
run: |
git config --global user.name "GitHub Actions Bot"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Run uplift script
env:
GH_TOKEN: ${{ github.token }}
DRYRUN: ${{ !inputs.dryRun && '--no-dry-run' || '' }}
BRANCH: ${{ github.ref_name }}
PUSH: ${{ !inputs.dryRun && '--push' || '' }}
run: |
bash scripts/uplift-merges.sh $DRYRUN --$BRANCH $PUSH | tee $GITHUB_STEP_SUMMARY