forked from DmitriySalnikov/godot_debug_draw_3d
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.46 KB
/
util_update_libs.yml
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
41
42
43
44
45
46
47
48
name: ↗️ Update GDExtension binaries from collected artifacts
run-name: "Update on '${{github.ref_name}}' '${{github.sha}}' #${{github.run_number}}"
on:
workflow_dispatch:
repository_dispatch:
jobs:
update:
name: Update GDExtension binaries
runs-on: ubuntu-latest
env:
ADDON_LIBS_PATH: addons/debug_draw_3d/libs
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download GDExtension Binaries
uses: dawidd6/action-download-artifact@v3
with:
workflow: gdextension_build.yml
branch: ${{github.ref_name}}
name: .gdextension_libs_production
path: extracted_files/
event: workflow_dispatch
- name: Replace with new files
shell: bash
run: |
find extracted_files -mindepth 1
rm -rf ${{env.ADDON_LIBS_PATH}}/
mv -f extracted_files ${{env.ADDON_LIBS_PATH}}
- name: Commit and report
shell: bash
run: |
git config --global user.name 'github-actions-auto-updater[bot]'
git config --global user.email 'github-actions-auto-updater[bot]@users.noreply.github.com'
git diff
git add -A
git commit -am "[CI] ↗️ Updated Binaries: ${{github.sha}}"
git push
echo "## Changed files:" >> $GITHUB_STEP_SUMMARY
codeblock_tmp=$'```\nSTATS\n```'
echo "${codeblock_tmp//STATS/$(git diff --stat HEAD~)}" >> $GITHUB_STEP_SUMMARY