Skip to content

Commit 7a8f69f

Browse files
committed
Add autocommit of manifest updates
1 parent 9df99dc commit 7a8f69f

File tree

1 file changed

+33
-4
lines changed

1 file changed

+33
-4
lines changed

.github/workflows/manifest.yml

+33-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
name: Update manifest
1212
runs-on: ubuntu-latest
1313
env:
14-
phpVersion: '8.0'
14+
phpVersion: '8.1'
1515
extensions: curl, fileinfo, gd, mbstring, openssl, pdo, pdo_sqlite, sqlite3, xml, zip
1616
key: winter-cms-cache-develop
1717
steps:
@@ -45,13 +45,13 @@ jobs:
4545
extensions: ${{ env.extensions }}
4646

4747
- name: Setup dependency cache
48-
id: composercache
49-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
48+
id: composer-cache
49+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
5050

5151
- name: Cache dependencies
5252
uses: actions/cache@v3
5353
with:
54-
path: ${{ steps.composercache.outputs.dir }}
54+
path: ${{ steps.composer-cache.outputs.dir }}
5555
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
5656
restore-keys: ${{ runner.os }}-composer-
5757

@@ -69,3 +69,32 @@ jobs:
6969
with:
7070
name: winter-manifest
7171
path: builds.json
72+
commitManifest:
73+
name: Commit manifest
74+
runs-on: ubuntu-latest
75+
needs: updateManifest
76+
steps:
77+
- name: Cancel previous incomplete runs
78+
uses: styfle/[email protected]
79+
with:
80+
access_token: ${{ github.token }}
81+
82+
- name: Checkout changes
83+
uses: actions/checkout@v3
84+
with:
85+
repository: wintercms/meta
86+
ref: main
87+
token: ${{ secrets.WINTER_BOT_TOKEN }}
88+
89+
- name: Download artifact
90+
uses: actions/download-artifact@v3
91+
with:
92+
name: winter-manifest
93+
path: manifest
94+
95+
- name: Commit changes
96+
uses: stefanzweifel/git-auto-commit-action@v4
97+
with:
98+
commit_message: Update manifest
99+
commit_user_name: Winter Bot
100+
commit_user_email: [email protected]

0 commit comments

Comments
 (0)