-
Notifications
You must be signed in to change notification settings - Fork 32
69 lines (60 loc) · 2.34 KB
/
Copy pathrelease.yml
File metadata and controls
69 lines (60 loc) · 2.34 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Respond to linter trigger
on:
repository_dispatch:
types: [trigger-workflow]
jobs:
run:
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: write
pull-requests: write
if: github.repository == 'flathub/org.flatpak.Builder'
steps:
# 4.2.2
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
persist-credentials: false
# 5.4.0
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38
with:
python-version: "3.13"
- name: Run update script
run: |
echo ${{ github.event.client_payload.sha }}
LINTER_SHA=${{ github.event.client_payload.sha }} python3 .github/scripts/rewrite-manfiest.py
- name: Sync linter deps file
run: |
LINTER_SHA=${{ github.event.client_payload.sha }}
TARGET_FILE="flatpak-builder-lint-deps.json"
TMP_FILE="$(mktemp)"
curl -fL \
"https://raw.githubusercontent.com/flathub-infra/flatpak-builder-lint/${LINTER_SHA}/docker/flatpak-builder-lint-deps.json" \
-o "$TMP_FILE"
mv -vf "$TMP_FILE" "$TARGET_FILE"
- name: Create pull request
if: ${{ success() }}
id: create-pr
# 7.0.8
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e
with:
token: ${{ secrets.FP_BUILDER_FLATHUBBOT_TOKEN }}
branch-suffix: "random"
commit-message: |
(Automated) Bump linter
Bump linter to ${{ github.event.client_payload.sha }}
title: "(Automated) Bump linter"
body: |
Bump linter to ${{ github.event.client_payload.sha }}
delete-branch: true
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- name: Pause for a while
if: ${{ steps.create-pr.outputs.pull-request-number }}
run: sleep 200
- name: Set auto-merge
if: ${{ steps.create-pr.outputs.pull-request-number }}
run: gh pr merge --rebase --auto ${{ steps.create-pr.outputs.pull-request-number }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}