Skip to content

Improve Apify actions #16384

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

Merged
merged 4 commits into from
Apr 28, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "apify-get-dataset-items",
name: "Get Dataset Items",
description: "Returns data stored in a dataset. [See the documentation](https://docs.apify.com/api/v2/dataset-items-get)",
version: "0.0.1",
version: "0.0.2",
type: "action",
props: {
apify,
Expand Down
8 changes: 7 additions & 1 deletion components/apify/actions/run-actor/run-actor.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "apify-run-actor",
name: "Run Actor",
description: "Performs an execution of a selected actor in Apify. [See the documentation](https://docs.apify.com/api/v2#/reference/actors/run-collection/run-actor)",
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
apify,
Expand Down Expand Up @@ -104,6 +104,12 @@ export default {
};
const options = this.prepareOptions(value);
if (options) props[key].options = options;
if (value.default) {
props[key].description += ` Default: \`${JSON.stringify(value.default)}\``;
if (props[key].type !== "object") { // default values don't work properly for object props
props[key].default = value.default;
}
}
}
}
return props;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "apify-run-task-synchronously",
name: "Run Task Synchronously",
description: "Run a specific task and return its dataset items. [See the documentation](https://docs.apify.com/api/v2/actor-task-run-sync-get-dataset-items-get)",
version: "0.0.1",
version: "0.0.2",
type: "action",
props: {
apify,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "apify-scrape-single-url",
name: "Scrape Single URL",
description: "Executes a scraper on a specific website and returns its content as text. This action is perfect for extracting content from a single page.",
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
apify,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "apify-set-key-value-store-record",
name: "Set Key-Value Store Record",
description: "Create or update a record in the key-value store of Apify. [See the documentation](https://docs.apify.com/api/v2#/reference/key-value-stores/record-collection/put-record)",
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
apify,
Expand Down
2 changes: 1 addition & 1 deletion components/apify/apify.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export default {
}) {
return this._makeRequest({
method: "POST",
path: `/acts/${actorId}/runs`,
path: `/acts/${actorId}/run-sync`,
...opts,
});
},
Expand Down
2 changes: 1 addition & 1 deletion components/apify/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/apify",
"version": "0.2.0",
"version": "0.2.1",
"description": "Pipedream Apify Components",
"main": "apify.app.mjs",
"keywords": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "apify-new-finished-actor-run-instant",
name: "New Finished Actor Run (Instant)",
description: "Emit new event when a selected actor is run and finishes.",
version: "0.0.2",
version: "0.0.3",
type: "source",
dedupe: "unique",
props: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "apify-new-finished-task-run-instant",
name: "New Finished Task Run (Instant)",
description: "Emit new event when a selected task is run and finishes.",
version: "0.0.2",
version: "0.0.3",
type: "source",
dedupe: "unique",
props: {
Expand Down
Loading