Skip to content

Commit fa57f79

Browse files
committed
Get tag name
1 parent da7aed5 commit fa57f79

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ name: Deploy FedaPay Woocommerce Plugin
22

33
on:
44
push:
5-
tags: "*"
5+
tags:
6+
- '*'
67
env:
78
SVN_REPOSITORY: ${{ vars.SVN_REPOSITORY }}
89
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}

deploy/deploy.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ rm -rf wordpress_org_assets/ deploy/
1414
rsync -r -p ./* $SVN_DIR/trunk/
1515

1616
# 5. Create SVN tag
17-
mkdir -p $SVN_DIR/tags/$TRAVIS_TAG
18-
rsync -r -p ./* $SVN_DIR/tags/$TRAVIS_TAG
17+
mkdir -p $SVN_DIR/tags/$GITHUB_REF_NAME
18+
rsync -r -p ./* $SVN_DIR/tags/$GITHUB_REF_NAME
1919

2020
svn stat $SVN_DIR
2121

@@ -27,7 +27,7 @@ svn stat $SVN_DIR | grep '^!' | awk '{print $2}' | xargs -I x svn rm --force x@
2727
svn stat $SVN_DIR
2828

2929
# 8. Push SVN tag
30-
svn ci --message "Release $TRAVIS_TAG" \
30+
svn ci --message "Release $GITHUB_REF_NAME" \
3131
--username $SVN_USERNAME \
3232
--password $SVN_PASSWORD \
3333
--non-interactive $SVN_DIR

0 commit comments

Comments
 (0)