-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Commands piped to Wrangler doesn't work in GitHub Actions #210
Comments
Only Adding some outputs to the action is a great suggestion that I think we definitely ought to implement. I've opened #211 to capture this. While far from ideal, in the meantime you could work around this with the following changes to your workflow config: - name: Deploy to Cloudflare Pages
uses: cloudflare/wrangler-action@5e8484995321734668f14981c316aa9188d76ed1
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
wranglerVersion: 3.5.1
- preCommands: wrangler --version
- command: pages deploy --branch ${{ env.CF_BRANCH }} --project-name=${{ inputs.cloudflare_website }} build/ | tee -a $GITHUB_STEP_SUMMARY
+ command: --version
+ postCommands: npx pages deploy --branch ${{ env.CF_BRANCH }} --project-name=${{ inputs.cloudflare_website }} build/ | tee -a $GITHUB_STEP_SUMMARY |
Heyyo @1000hz From my testing, I understood as much about |
Yes, removing support for shell piping in |
Yeah no worries @1000hz These things happen. Happy to help improve this bit. |
Here's our GitHub action step using Wrangler Action.
This command used to work, but is now failing when trying out the new wrangler-action v3.3.2 with the following error. We used the pipe to get command output into GitHub Step Summary for a nice bit of result and get the Cloudflare pages draft URL.
Here's the error: The wrangle command tries to check what these arguments are as well.
I recommend that we define proper outputs for this action in the
action.yml
file. These standardized outputs can be used by folks anywhere? Can add that myself if people agree?Link of the action run: https://github.com/product-os/flowzone/actions/runs/6905675937/job/18789164936
The text was updated successfully, but these errors were encountered: