Skip to content

Commit

Permalink
Merge pull request #265 from buckaroo-it/develop
Browse files Browse the repository at this point in the history
update main yml
  • Loading branch information
vegimcarkaxhija authored Jul 1, 2024
2 parents 34dcfd9 + 246e03a commit 7b2a183
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 7b2a183

Please sign in to comment.