From 246e03aba235bf4a6e2987dba20c83c4ac7dee42 Mon Sep 17 00:00:00 2001 From: vegim carkaxhija Date: Mon, 1 Jul 2024 16:24:54 +0200 Subject: [PATCH] update main yml --- .github/workflows/main.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 93df2ed27..41129d676 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,18 +7,17 @@ jobs: svn_sync: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Sync with SVN on release run: | RELEASE_VERSION=`grep "^Stable tag:" readme.txt | awk -F' ' '{print $NF}'` echo "version: $RELEASE_VERSION" mkdir ~/tmp cd ~/tmp - svn co https://plugins.svn.wordpress.org/wc-buckaroo-bpe-gateway/ --username "${{ secrets.SVN_REP_USER }}" --password "${{ secrets.SVN_REP_PW }}" + svn co https://plugins.svn.wordpress.org/wc-buckaroo-bpe-gateway/ --username "${{ secrets.SVN_REP_USER }}" --password "${{ secrets.SVN_REP_PW }}" --non-interactive --trust-server-cert cd wc-buckaroo-bpe-gateway - svn delete trunk/* + svn delete trunk/* --force rsync -r --exclude='.git' --exclude='.github' ${{ github.workspace }}/ trunk/ svn add trunk/* - svn commit --username "${{ secrets.SVN_REP_USER }}" --password "${{ secrets.SVN_REP_PW }}" -m "release $RELEASE_VERSION" . - svn copy --username "${{ secrets.SVN_REP_USER }}" --password "${{ secrets.SVN_REP_PW }}" https://plugins.svn.wordpress.org/wc-buckaroo-bpe-gateway/trunk https://plugins.svn.wordpress.org/wc-buckaroo-bpe-gateway/tags/$RELEASE_VERSION -m "release $RELEASE_VERSION" - + svn commit --username "${{ secrets.SVN_REP_USER }}" --password "${{ secrets.SVN_REP_PW }}" --non-interactive --trust-server-cert -m "release $RELEASE_VERSION" + svn copy --username "${{ secrets.SVN_REP_USER }}" --password "${{ secrets.SVN_REP_PW }}" --non-interactive --trust-server-cert https://plugins.svn.wordpress.org/wc-buckaroo-bpe-gateway/trunk https://plugins.svn.wordpress.org/wc-buckaroo-bpe-gateway/tags/$RELEASE_VERSION -m "release $RELEASE_VERSION" \ No newline at end of file