-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (34 loc) · 1.01 KB
/
autoupdate-curl.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
name: autoupdate-curl
on:
workflow_dispatch:
#schedule:
#- cron: '30 0 * * MON'
jobs:
upload-curl:
runs-on: windows-2022
steps:
- uses: msys2/setup-msys2@v2
with:
location: D:\
install: base-devel autoconf-wrapper automake-wrapper libtool git
- name: Prepare
run: git config --global core.autocrlf input
shell: bash
- uses: actions/checkout@main
with:
token: ${{ secrets.BOT }}
- name: Install curl
shell: msys2 {0}
run: |
curl -OL https://github.com/${{ github.repository }}/releases/download/dev/curl-dev-8_0_1-1-x86_64.pkg.tar.zst
pacman -U *.zst --noconfirm
rm -rf bin
mkdir bin
mv /d/msys64/opt/bin/* bin
- name: Push
run: |
git config --global user.name 'eko5624'
git config --global user.email 'datong5624@gmail.com'
git add -A
git commit -am "update curl" || echo "nothing updated"
git push