Skip to content

Commit

Permalink
Unstuck release :'(
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed Aug 25, 2024
1 parent ef24430 commit c7997a6
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
41 changes: 41 additions & 0 deletions .github/workflows/force-update-layer-versions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# TODO this should be removed, it's used to work around bugged builds
name: Force update layer versions

on:
workflow_dispatch:

jobs:

list:
needs: build
name: Update layer versions
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
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
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:

list:
needs: build
name: List layer
name: Update layer versions
runs-on: ubuntu-latest
if: ${{ github.actor != 'bref-bot' }}

Expand Down

0 comments on commit c7997a6

Please sign in to comment.