Skip to content

Commit

Permalink
Try setting dry-run env variable for prerelease
Browse files Browse the repository at this point in the history
  • Loading branch information
delawski committed Jul 26, 2024
1 parent 5aaf2e4 commit f3ddbba
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/deploy-to-wp-org.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,17 @@ jobs:
permissions:
contents: write
packages: read

steps:
- name: Set dry-run based on release type
id: set-dry-run
run: |
if [ "${{ github.event.release.prerelease }}" = "true" ]; then
echo "dry-run=true" >> $GITHUB_ENV
else
echo "dry-run=false" >> $GITHUB_ENV
fi
echo "Dry-run is set to: ${{ env.dry-run }}"
- name: Checkout
uses: actions/checkout@v3
Expand Down

0 comments on commit f3ddbba

Please sign in to comment.