-
-
Notifications
You must be signed in to change notification settings - Fork 131
Expand file tree
/
Copy pathforce-update-layer-versions.yml
More file actions
40 lines (31 loc) · 1.04 KB
/
force-update-layer-versions.yml
File metadata and controls
40 lines (31 loc) · 1.04 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
# TODO this should be removed, it's used to work around bugged builds
name: Force update layer versions
on:
workflow_dispatch:
jobs:
list:
name: Update layer versions
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download dependencies
run: composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable
- name: List layers
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_ACCESS_SECRET }}
run: php ./bref-extra list
- name: Commit changes
run: |
git config --local user.email "github-bot@bref.sh"
git config --local user.name "Bref Bot"
git add layers.json
git commit -m "Updated layers.json"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.BOT_GITHUB_TOKEN }}
branch: prepare-release