-
Notifications
You must be signed in to change notification settings - Fork 52
31 lines (28 loc) · 1.11 KB
/
dependency-spec-updates.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
name: Dependency spec updates
on: pull_request
jobs:
package-specs:
runs-on: ubuntu-latest
container:
image: ghcr.io/cloudfoundry/app-autoscaler-release-tools:main
if: contains(fromJson('["dependabot[bot]", "renovate[bot]"]'), github.event.pull_request.user.login) && contains(github.event.pull_request.labels.*.name, 'dependencies')
steps:
- uses: actions/checkout@v4
- name: package-specs
shell: bash
run: |
#! /usr/bin/env bash
set -eu -o pipefail
make --directory='./src/acceptance/assets/app/go_app' generate-fakes
make --directory='./src/autoscaler' generate-fakes
make package-specs
- name: Check if there are changes
id: changes
run: echo "changed=$(git status --porcelain | wc -l)" >> $GITHUB_ENV
- name: Process changes
if: steps.changes.outputs.changed != 0
uses: EndBug/add-and-commit@v9 # You can change this to use a specific version.
with:
add: './packages/**/spec'
message: 'Updating spec files from `dependabot[bot]` changes'
push: true