Skip to content

Commit a015e3a

Browse files
committed
Add test mode input and prepare dry-run step
1 parent 6e32ff3 commit a015e3a

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/wordpress-org-release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ on:
1616
type: string
1717
required: true
1818

19+
TEST_MODE:
20+
description: "In test mode no commit to SVN repository happens. Instead, local SVN repository is used, and then provided as an archive for manual checking."
21+
type: boolean
22+
default: false
23+
required: false
24+
1925
secrets:
2026
SVN_USERNAME:
2127
required: true
@@ -84,4 +90,8 @@ jobs:
8490
svn add . --force
8591
svn status | grep '^!' | cut -c9- | while IFS= read -r file; do
8692
svn delete "$file@" # @ suffix handles files with @ in name
87-
done
93+
done
94+
95+
- name: [TEST MODE] Pack files and provide as an artefact instead of commiting to the actual repository
96+
if: ${{ inputs.TEST_MODE }}
97+
run: | #TODO: create an artifact and upload it here

0 commit comments

Comments
 (0)