diff --git a/git-post-store-urls-to-pr/action.yml b/git-post-store-urls-to-pr/action.yml index c30b59d..bbdede2 100644 --- a/git-post-store-urls-to-pr/action.yml +++ b/git-post-store-urls-to-pr/action.yml @@ -15,6 +15,16 @@ runs: steps: - name: Setup GIT uses: raycast/github-actions/setup-git@v1.17.0 + - name: Extract platforms from package.json + id: extract_platforms + shell: bash + run: | + if [ -f "package.json" ]; then + platforms=$(jq -r '.platforms // ["macOS"] | join(", ")' package.json 2>/dev/null || echo "macOS") + else + platforms="macOS" + fi + echo "platforms=$platforms" >> $GITHUB_OUTPUT - name: Check message id: check_message shell: bash @@ -28,6 +38,6 @@ runs: GITHUB_TOKEN: ${{ inputs.github_token }} with: message: | - **Published to the Raycast Store:** + **Published to the Raycast Store:** (${{ steps.extract_platforms.outputs.platforms }}) ${{ inputs.store_urls }} allow-repeats: true