Skip to content

Commit

Permalink
Use $REPO_NAME variable
Browse files Browse the repository at this point in the history
  • Loading branch information
2ndkauboy committed Oct 21, 2024
1 parent 1429108 commit 5c52068
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/wordpress-plugin-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Set ENV variables
run: |
echo "REPO_NAME=${GITHUB_REPOSITORY#$GITHUB_REPOSITORY_OWNER/}" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v3

Expand All @@ -32,11 +36,11 @@ jobs:

- name: Build plugin
run: |
wp dist-archive . ./campaign-archive-block-for-mailchimp.zip
wp dist-archive . ./$REPO_NAME.zip
mkdir tmp-build
unzip campaign-archive-block-for-mailchimp.zip -d tmp-build
unzip $REPO_NAME.zip -d tmp-build
- name: Run plugin check
uses: wordpress/plugin-check-action@v1
with:
build-dir: "./tmp-build/campaign-archive-block-for-mailchimp"
build-dir: ./tmp-build/$REPO_NAME

0 comments on commit 5c52068

Please sign in to comment.