mirror of
https://gitlab.com/fscarmen/warp.git
synced 2026-06-15 03:25:42 +08:00
Update some sync action files again.
Former-commit-id: 1309fe2ac80ff4bf8380e927faa28b3f068f1cdf
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
name: "Build glibc & make"
|
||||
name: Build glibc & make
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
Building:
|
||||
name: "Build on CentOS 7"
|
||||
name: Build on CentOS 7
|
||||
runs-on: ubuntu-latest
|
||||
container: docker.io/centos:7
|
||||
steps:
|
||||
@@ -48,6 +48,4 @@ jobs:
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
tag_name: Glibc
|
||||
files: /opt/release/*
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||
files: /opt/release/*
|
||||
@@ -1,4 +1,4 @@
|
||||
name: Sync CloudFlare Client
|
||||
name: Synchronize client
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
@@ -8,13 +8,11 @@ on:
|
||||
jobs:
|
||||
WireGuard-go:
|
||||
|
||||
name: Sync Client to the latest
|
||||
|
||||
name: Synchronize client
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
env:
|
||||
USERNAME: ${{ secrets.GH_USERNAME }}
|
||||
EMAIL: ${{ secrets.GH_EMAIL }}
|
||||
FILE_DIR: Client
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -22,39 +20,35 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Check the official latest version of Client
|
||||
- name: Synchronize client to the latest version
|
||||
run: |
|
||||
NOW=$(wget -qO- "https://api.github.com/repos/${{ env.USERNAME }}/warp/releases" | grep "tag_name" | grep "CloudFlare" | head -n 1 | sed "s/.*_v\(.\{1,\}\)\".*/\1/g")
|
||||
NOW=$(wget -qO- "https://api.github.com/repos/${{ github.repository }}/releases" | grep "tag_name" | grep "CloudFlare" | head -n 1 | sed "s/.*_v\(.\{1,\}\)\".*/\1/g")
|
||||
LATEST=$(wget -qO- "https://pkg.cloudflareclient.com/packages/cloudflare-warp" | grep "release-row" | awk -F '</td><td>' {'print $1'} | awk -F '<td>' {'print $2'})
|
||||
|
||||
Operating_System=("CentOS 8" "Debian Bullseye" "Debian Buster" "Debian Stretch" "Ubuntu Jammy" "Ubuntu Focal" "Ubuntu Bionic" "Ubuntu Xenial")
|
||||
System_Rename=("CentOS_8.rpm" "Debian_11.deb" "Debian_10.deb" "Debian_9.deb" "Ubuntu_22.04.deb" "Ubuntu_20.04.deb" "Ubuntu_18.04.deb" "Ubuntu_16.04.deb")
|
||||
|
||||
if [ "$LATEST" != "$NOW" ]; then
|
||||
[ ! -d ${GITHUB_WORKSPACE}/Client ] && mkdir -p ${GITHUB_WORKSPACE}/Client
|
||||
[ ! -d ${{ env.FILE_DIR }} ] && mkdir -p ${{ env.FILE_DIR }}
|
||||
for ((i=0; i<${#Operating_System[@]}; i++)); do
|
||||
File_Path=$(wget -qO- https://pkg.cloudflareclient.com/packages/cloudflare-warp | grep 'release-row' | awk -F "</td><td>${Operating_System[i]}" {'print $2'} | awk -F 'Download' {'print $1'} | awk -F \" {'print $2'})
|
||||
Download_URL="https://pkg.cloudflareclient.com$File_Path"
|
||||
wget -O ${GITHUB_WORKSPACE}/Client/Client_${System_Rename[i]} $Download_URL
|
||||
wget -O {{ env.FILE_DIR }}/Client_${System_Rename[i]} $Download_URL
|
||||
done
|
||||
|
||||
echo "VERSION=$LATEST" >> $GITHUB_ENV
|
||||
echo "DIST=${GITHUB_WORKSPACE}/Client" >> $GITHUB_ENV
|
||||
echo "DATE=$(date "+%Y/%m/%d %H:%M:%S")" >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: Upload to REPO
|
||||
- name: Upload to repository
|
||||
uses: stefanzweifel/git-auto-commit-action@v4.16.0
|
||||
if: ${{ env.VERSION != '' }}
|
||||
run: |
|
||||
git config --global user.email "${{ env.EMAIL }}"
|
||||
git config --global user.name "${{ env.USERNAME }}"
|
||||
git add .
|
||||
git commit -m "Sync Client to V${{ env.VERSION }} by Github Actions, $(date "+%Y/%m/%d %H:%M:%S")"
|
||||
git push
|
||||
rm -f ${{ env.DIST }}/README.md
|
||||
|
||||
with:
|
||||
commit_message: Sync Client to V${{ env.VERSION }} by Github Actions, ${{ env.DATE }}
|
||||
|
||||
- name: Release binaries
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: ${{ env.VERSION != '' }}
|
||||
with:
|
||||
tag_name: CloudFlare_Client_v${{ env.VERSION }}
|
||||
files: ${{ env.DIST }}/*
|
||||
files: ${{ env.FILE_DIR }}/Client*
|
||||
@@ -1,4 +1,4 @@
|
||||
name: 'GitHub Actions Mirror'
|
||||
name: GitHub Actions Mirror
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
@@ -14,8 +14,10 @@ jobs:
|
||||
steps:
|
||||
- name: 'Checkout'
|
||||
uses: actions/checkout@v1
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: 'Mirror to gitlab'
|
||||
uses: pixta-dev/repository-mirroring-action@v1
|
||||
uses: pixta-dev/repository-mirroring-action@v1.1.1
|
||||
with:
|
||||
target_repo_url:
|
||||
git@gitlab.com:fscarmen/warp.git
|
||||
@@ -27,8 +29,10 @@ jobs:
|
||||
steps:
|
||||
- name: 'Checkout'
|
||||
uses: actions/checkout@v1
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: 'Mirror to gitlab'
|
||||
uses: pixta-dev/repository-mirroring-action@v1
|
||||
uses: pixta-dev/repository-mirroring-action@v1.1.1
|
||||
with:
|
||||
target_repo_url:
|
||||
git@gitlab.com:ProjectWARP/warp-script.git
|
||||
@@ -40,8 +44,10 @@ jobs:
|
||||
steps:
|
||||
- name: 'Checkout'
|
||||
uses: actions/checkout@v1
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: 'Mirror to bitbucket'
|
||||
uses: pixta-dev/repository-mirroring-action@v1
|
||||
uses: pixta-dev/repository-mirroring-action@v1.1.1
|
||||
with:
|
||||
target_repo_url:
|
||||
git@bitbucket.org:fscarmen/warp.git
|
||||
@@ -53,10 +59,12 @@ jobs:
|
||||
steps:
|
||||
- name: 'Checkout'
|
||||
uses: actions/checkout@v1
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: 'Mirror to gitee'
|
||||
uses: pixta-dev/repository-mirroring-action@v1
|
||||
uses: pixta-dev/repository-mirroring-action@v1.1.1
|
||||
with:
|
||||
target_repo_url:
|
||||
git@gitee.com:fscarmen/warp.git
|
||||
ssh_private_key:
|
||||
${{ secrets.PRIVATE_KEY }}
|
||||
${{ secrets.PRIVATE_KEY }}
|
||||
@@ -1,4 +1,4 @@
|
||||
name: Sync warp-go latest version
|
||||
name: Synchronize warp-go
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
@@ -7,21 +7,21 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Sync warp-go latest version
|
||||
name: Synchronize warp-go
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
env:
|
||||
USERNAME: ${{ secrets.GH_USERNAME }}
|
||||
EMAIL: ${{ secrets.GH_EMAIL }}
|
||||
REPO: ${{ secrets.GH_REPO }}
|
||||
FILE_DIR: warp-go
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3.4.0
|
||||
- name: Update warp-go to latest version
|
||||
- name: Synchronize warp-go to the latest version
|
||||
run: |
|
||||
NOW=$(wget -qO- https://raw.githubusercontent.com/${{ env.USERNAME }}/${{ env.REPO }}/main/warp-go.sh | grep 'latest=${latest' | cut -d \' -f2)
|
||||
NOW=$(wget -qO- https://raw.githubusercontent.com/${{ github.repository }}/main/warp-go.sh | grep 'latest=${latest' | cut -d \' -f2)
|
||||
LATEST=$(wget -qO- -T1 -t1 https://gitlab.com/api/v4/projects/ProjectWARP%2Fwarp-go/releases | grep -oP '"tag_name":"v\K[^\"]+' | head -n 1)
|
||||
if [ "$LATEST" != "$NOW" ]; then
|
||||
[ ! -d ${GITHUB_WORKSPACE}/warp-go ] && mkdir -p ${GITHUB_WORKSPACE}/warp-go
|
||||
[ ! -d ${{ env.FILE_DIR }} ] && mkdir -p ${{ env.FILE_DIR }}
|
||||
PLATFORM=( "linux_386"
|
||||
"linux_amd64"
|
||||
"linux_amd64v2"
|
||||
@@ -36,30 +36,27 @@ jobs:
|
||||
)
|
||||
|
||||
for i in "${PLATFORM[@]}"; do
|
||||
wget -NP ${GITHUB_WORKSPACE}/warp-go/ https://gitlab.com/ProjectWARP/warp-go/-/releases/v"$LATEST"/downloads/warp-go_"$LATEST"_"$i".tar.gz
|
||||
rm -f ${GITHUB_WORKSPACE}/warp-go/warp-go_"$NOW"_"$i".tar.gz
|
||||
wget -NP ${{ env.FILE_DIR }} https://gitlab.com/ProjectWARP/warp-go/-/releases/v"$LATEST"/downloads/warp-go_"$LATEST"_"$i".tar.gz
|
||||
rm -f ${{ env.FILE_DIR }}/warp-go_"$NOW"_"$i".tar.gz
|
||||
done
|
||||
|
||||
for j in "${SCRIPTS[@]}"; do
|
||||
sed -i "/判断 warp-go 的最新版本/s/$NOW/$LATEST/; /latest=\${/s/$NOW/$LATEST/" ${GITHUB_WORKSPACE}/$j
|
||||
sed -i "/判断 warp-go 的最新版本/s/$NOW/$LATEST/; /latest=\${/s/$NOW/$LATEST/" $j || true
|
||||
done
|
||||
|
||||
echo "VERSION=$LATEST" >> $GITHUB_ENV
|
||||
echo "DIST=${GITHUB_WORKSPACE}/warp-go" >> $GITHUB_ENV
|
||||
echo "DATE=$(date "+%Y/%m/%d %H:%M:%S")" >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: Upload to REPO
|
||||
|
||||
- name: Upload to repository
|
||||
uses: stefanzweifel/git-auto-commit-action@v4.16.0
|
||||
if: ${{ env.VERSION != '' }}
|
||||
run: |
|
||||
git config --global user.email "${{ env.EMAIL }}"
|
||||
git config --global user.name "${{ env.USERNAME }}"
|
||||
git add .
|
||||
git commit -m "Sync warp-go to V${{ env.VERSION }} by Github Actions, $(date "+%Y/%m/%d %H:%M:%S")"
|
||||
git push
|
||||
|
||||
with:
|
||||
commit_message: Sync warp-go to V${{ env.VERSION }} by Github Actions, ${{ env.DATE }}
|
||||
|
||||
- name: Release binaries
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: ${{ env.VERSION != '' }}
|
||||
with:
|
||||
tag_name: warp-go_v${{ env.VERSION }}
|
||||
files: ${{ env.DIST }}/*
|
||||
files: ${{ env.FILE_DIR }}/*
|
||||
@@ -1,4 +1,4 @@
|
||||
name: Sync wgcf latest version
|
||||
name: Synchronize wgcf
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
@@ -7,21 +7,22 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Sync wgcf latest version
|
||||
name: Synchronize wgcf
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
env:
|
||||
USERNAME: ${{ secrets.GH_USERNAME }}
|
||||
EMAIL: ${{ secrets.GH_EMAIL }}
|
||||
FILE_DIR: wgcf
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3.4.0
|
||||
- name: Update wgcf to latest version
|
||||
- name: Synchronize wgcf to the latest version
|
||||
run: |
|
||||
NOW=$(wget -qO- https://raw.githubusercontent.com/${{ env.USERNAME }}/warp/main/menu.sh | grep 'latest=${latest' | cut -d \' -f2)
|
||||
NOW=$(wget -qO- https://raw.githubusercontent.com/${{ github.repository }}/main/menu.sh | grep 'latest=${latest' | cut -d \' -f2)
|
||||
LATEST=$(wget -qO- "https://api.github.com/repos/ViRb3/wgcf/releases/latest" | grep "tag_name" | head -n 1 | cut -d : -f2 | sed 's/[ \"v,]//g')
|
||||
|
||||
if [ "$LATEST" != "$NOW" ]; then
|
||||
[ ! -d ${GITHUB_WORKSPACE}/wgcf ] && mkdir -p ${GITHUB_WORKSPACE}/wgcf
|
||||
[ ! -d ${{ env.FILE_DIR }} ] && mkdir -p ${{ env.FILE_DIR }}
|
||||
PLATFORM=( "darwin_amd64"
|
||||
"darwin_arm64"
|
||||
"linux_386"
|
||||
@@ -39,22 +40,20 @@ jobs:
|
||||
)
|
||||
|
||||
for i in "${PLATFORM[@]}"; do
|
||||
wget -NP ${GITHUB_WORKSPACE}/wgcf/ https://github.com/ViRb3/wgcf/releases/download/v"$LATEST"/wgcf_"$LATEST"_"$i"
|
||||
rm -f ${GITHUB_WORKSPACE}/wgcf/wgcf_"$NOW"_"$i"
|
||||
wget -NP ${{ env.FILE_DIR }}/ https://github.com/ViRb3/wgcf/releases/download/v"$LATEST"/wgcf_"$LATEST"_"$i"
|
||||
rm -f ${{ env.FILE_DIR }}/wgcf_"$NOW"_"$i"
|
||||
done
|
||||
|
||||
for j in "${SCRIPTS[@]}"; do
|
||||
sed -i "s/$NOW/$LATEST/g" ${GITHUB_WORKSPACE}/$j
|
||||
sed -i "s/$NOW/$LATEST/g" $j || true
|
||||
done
|
||||
|
||||
echo "VERSION=$LATEST" >> $GITHUB_ENV
|
||||
echo "DATE=$(date "+%Y/%m/%d %H:%M:%S")" >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: Upload to REPO
|
||||
- name: Upload to repository
|
||||
uses: stefanzweifel/git-auto-commit-action@v4.16.0
|
||||
if: ${{ env.VERSION != '' }}
|
||||
run: |
|
||||
git config --global user.email "${{ env.EMAIL }}"
|
||||
git config --global user.name "${{ env.USERNAME }}"
|
||||
git add .
|
||||
git commit -m "Sync WGCF to V${{ env.VERSION }} by Github Actions, $(date "+%Y/%m/%d %H:%M:%S")"
|
||||
git push
|
||||
with:
|
||||
commit_message: Sync WGCF to V${{ env.VERSION }} by Github Actions, ${{ env.DATE }}
|
||||
@@ -1,4 +1,4 @@
|
||||
name: Sync WireGuard-go
|
||||
name: Synchronize wireGuard-go
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
@@ -8,14 +8,13 @@ on:
|
||||
jobs:
|
||||
WireGuard-go:
|
||||
|
||||
name: Sync WireGuard-go to the latest
|
||||
name: Synchronize wireGuard-go
|
||||
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
env:
|
||||
WORKDIR: ./wireguard-go-source
|
||||
USERNAME: ${{ secrets.GH_USERNAME }}
|
||||
EMAIL: ${{ secrets.GH_EMAIL }}
|
||||
WORK_DIR: ./wireguard-go-source
|
||||
FILE_DIR: wireguard-go
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -23,17 +22,17 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Check the official latest version of WireGuard-go
|
||||
- name: Synchronize wireGuard-go to the latest version
|
||||
run: |
|
||||
NOW=$(wget -qO- "https://api.github.com/repos/${{ env.USERNAME }}/warp/releases" | grep "tag_name" | grep -i "wireguard-go" | head -n 1 | sed "s/.*_v\(.*\)\".*/\1/g")
|
||||
NOW=$(wget -qO- "https://api.github.com/repos/${{ github.repository }}/releases" | grep "tag_name" | grep -i "wireguard-go" | head -n 1 | sed "s/.*_v\(.*\)\".*/\1/g")
|
||||
LATEST=$(wget -qO- https://git.zx2c4.com/wireguard-go/ | grep '/wireguard-go/tag' | sed -n 1p | sed "s/.*>\([0-9.]\{1,\}\)<.*/\1/g")
|
||||
|
||||
if [ "$LATEST" != "$NOW" ]; then
|
||||
[ ! -d ${GITHUB_WORKSPACE}/wireguard-go ] && mkdir -p ${GITHUB_WORKSPACE}/wireguard-go
|
||||
git clone https://git.zx2c4.com/wireguard-go ${{ env.WORKDIR }}
|
||||
cp .github/wireguard-go-releaser.yml ${{ env.WORKDIR }}/.goreleaser.yml
|
||||
git clone https://git.zx2c4.com/wireguard-go ${{ env.WORK_DIR }}
|
||||
cp .github/wireguard-go-releaser.yml ${{ env.WORK_DIR }}/.goreleaser.yml
|
||||
echo "VERSION=$LATEST" >> $GITHUB_ENV
|
||||
echo "flags=--snapshot" >> $GITHUB_ENV
|
||||
echo "DATE=$(date "+%Y/%m/%d %H:%M:%S")" >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: Set up GoReleaser
|
||||
@@ -47,26 +46,26 @@ jobs:
|
||||
if: ${{ env.VERSION != '' }}
|
||||
with:
|
||||
distribution: goreleaser
|
||||
workdir: ${{ env.WORKDIR }}
|
||||
workdir: ${{ env.WORK_DIR }}
|
||||
version: latest
|
||||
args: release --clean ${{ env.flags }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||
|
||||
- name: Move the files and delete temp dir
|
||||
if: ${{ env.VERSION != '' }}
|
||||
run: |
|
||||
[ ! -d ${{ env.FILE_DIR }} ] && mkdir -p ${{ env.FILE_DIR }}
|
||||
cp -f ${{ env.WORK_DIR }}/dist/*.tar.gz ${{ env.FILE_DIR }}
|
||||
rm -rf ${{ env.WORK_DIR }}
|
||||
|
||||
- name: Upload to repository
|
||||
uses: stefanzweifel/git-auto-commit-action@v4.16.0
|
||||
if: ${{ env.VERSION != '' }}
|
||||
with:
|
||||
commit_message: Sync wireguard-go to V${{ env.VERSION }} by Github Actions, ${{ env.DATE }}
|
||||
|
||||
- name: Release binaries
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: ${{ env.VERSION != '' }}
|
||||
with:
|
||||
tag_name: WireGuard-go_v${{ env.VERSION }}
|
||||
files: ${{ env.WORKDIR }}/dist/*.tar.gz
|
||||
|
||||
- name: Upload to REPO
|
||||
if: ${{ env.VERSION != '' }}
|
||||
run: |
|
||||
cp -f ${{ env.WORKDIR }}/dist/*.tar.gz ${GITHUB_WORKSPACE}/wireguard-go/
|
||||
rm -rf ${{ env.WORKDIR }}
|
||||
git config --global user.email "${{ env.EMAIL }}"
|
||||
git config --global user.name "${{ env.USERNAME }}"
|
||||
git add .
|
||||
git commit -m "Wireguard-go V${{ env.VERSION }}, $(date "+%Y/%m/%d")"
|
||||
git push
|
||||
files: ${{ env.FILE_DIR }}/*.tar.gz
|
||||
@@ -1,4 +1,4 @@
|
||||
name: Sync wireproxy latest version
|
||||
name: Synchronize wireproxy
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
@@ -7,36 +7,35 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Sync wireproxy latest version
|
||||
name: Synchronize wireproxy
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
env:
|
||||
USERNAME: ${{ secrets.GH_USERNAME }}
|
||||
EMAIL: ${{ secrets.GH_EMAIL }}
|
||||
FILE_DIR: wireproxy
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3.4.0
|
||||
- name: Update wireproxy to latest version
|
||||
- name: Synchronize wireproxy to the latest version
|
||||
run: |
|
||||
NOW=$(wget -qO- https://raw.githubusercontent.com/${{ env.USERNAME }}/warp/main/wireproxy/version_history | head -n 1 | sed "s/.*v\(.*\)/\1/g")
|
||||
NOW=$(wget -qO- https://raw.githubusercontent.com/${{ github.repository }}/main/wireproxy/version_history | head -n 1 | sed "s/.*v\(.*\)/\1/g")
|
||||
LATEST=$(wget -qO- "https://api.github.com/repos/octeep/wireproxy/releases/latest" | grep "tag_name" | head -n 1 | cut -d : -f2 | sed 's/[ \"v,]//g')
|
||||
|
||||
if [ "$LATEST" != "$NOW" ]; then
|
||||
[ ! -d ${GITHUB_WORKSPACE}/wireproxy ] && mkdir -p ${GITHUB_WORKSPACE}/wireproxy
|
||||
[ ! -d ${{ env.FILE_DIR }} ] && mkdir -p ${{ env.FILE_DIR }}
|
||||
PLATFORM=( "linux_amd64" "linux_arm64" "linux_s390x" )
|
||||
for i in "${PLATFORM[@]}"; do
|
||||
wget -O ${GITHUB_WORKSPACE}/wireproxy/wireproxy_"$i".tar.gz https://github.com/octeep/wireproxy/releases/download/v"$LATEST"/wireproxy_"$i".tar.gz
|
||||
wget -O ${{ env.FILE_DIR }}/wireproxy_"$i".tar.gz https://github.com/octeep/wireproxy/releases/download/v"$LATEST"/wireproxy_"$i".tar.gz
|
||||
done
|
||||
|
||||
sed -i "1i$(date "+%Y/%m/%d") v$LATEST" ${GITHUB_WORKSPACE}/wireproxy/version_history
|
||||
sed -i "1i$(date "+%Y/%m/%d") v$LATEST" ${{ env.FILE_DIR }}/version_history || true
|
||||
|
||||
echo "VERSION=$LATEST" >> $GITHUB_ENV
|
||||
echo "DATE=$(date "+%Y/%m/%d %H:%M:%S")" >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: Upload to REPO
|
||||
- name: Upload to repository
|
||||
uses: stefanzweifel/git-auto-commit-action@v4.16.0
|
||||
if: ${{ env.VERSION != '' }}
|
||||
run: |
|
||||
git config --global user.email "${{ env.EMAIL }}"
|
||||
git config --global user.name "${{ env.USERNAME }}"
|
||||
git add .
|
||||
git commit -m "Sync wireproxy to V${{ env.VERSION }} by Github Actions, $(date "+%Y/%m/%d %H:%M:%S")"
|
||||
git push
|
||||
with:
|
||||
commit_message: Sync wireproxy to V${{ env.VERSION }} by Github Actions, ${{ env.DATE }}
|
||||
Reference in New Issue
Block a user