-
Notifications
You must be signed in to change notification settings - Fork 14
51 lines (48 loc) · 1.66 KB
/
scout-packages.yaml
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
name: Scout packages
on:
workflow_dispatch:
schedule:
- cron: "0 6 * * 1-5"
jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- id: ls
run: echo "packages=$(ls -d packages/*/ | cut -f2 -d'/' | jq -cnR [inputs])" >> $GITHUB_OUTPUT
outputs:
packages: ${{ steps.ls.outputs.packages }}
scout-package:
runs-on: ubuntu-latest
needs:
- setup
strategy:
matrix:
package: ${{ fromJson(needs.setup.outputs.packages) }}
continue-on-error: true
permissions:
packages: read
pull-requests: write
contents: write
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: glasskube/scout/actions/setup@a46cfc5307c027fbe6b3624c9fa4e0c1dfa86fba # v0.3.5
with:
token: ${{ secrets.GITHUB_TOKEN }}
- run: scout package --name=${{ matrix.package }}
- name: Create or update pull request
uses: peter-evans/create-pull-request@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f # v7
with:
token: ${{ secrets.GLASSKUBE_BOT_SECRET }}
committer: "glasskube-bot <[email protected]>"
author: "glasskube-bot <[email protected]>"
signoff: true
branch: "bot/package-update/${{ matrix.package }}"
commit-message: "chore: update package ${{ matrix.package }}"
title: "chore: update package ${{ matrix.package }}"
body: |
:robot: Automated PR
---
Merge this PR to update the `${{ matrix.package }}` package.