Skip to content

Commit 7778148

Browse files
committed
♻️ Replace repository-updater action with pip package to set git user correctly
1 parent f4cb681 commit 7778148

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

.github/workflows/repository-update.yaml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,22 @@ jobs:
2323
permissions:
2424
contents: write
2525
steps:
26-
- name: 🚀 Run Repository Updater
27-
uses: hassio-addons/repository-updater@v1
26+
- name: 🏗️ Setup python env
27+
uses: actions/setup-python@v5
2828
with:
29-
addon: ${{ github.events.inputs.addon }}
30-
repository: ${{ github.repository }}
31-
token: ${{ secrets.updater_token }}
29+
python-version: '3.11'
30+
31+
- name: 🏗️ Install repository-updater
32+
run: pip install repository-updater
33+
34+
- name: 🏗️ Setup git user
35+
run: |
36+
git config user.name "${{ github.actor }}"
37+
git config user.email "${{ github.actor }}@users.noreply.github.com"
38+
39+
- name: 🚀 Run Repository Updater
40+
run: >
41+
repository-updater
42+
--addon "${{ github.events.inputs.addon }}"
43+
--repository "${{ github.repository }}"
44+
--token "${{ secrets.updater_token }}"

0 commit comments

Comments
 (0)