Skip to content
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

Autorev fix commands #11369

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
11 changes: 8 additions & 3 deletions .github/actions/git-diff-on-components/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -282852,9 +282852,10 @@ async function run() {
}

if (componentsDiffContents.length) {
let linuxCommand, macCommand = ''
let linuxCommand = ''
let macCommand = ''

for ({ dependencyFilePath, componentFilePath } of componentsDiffContents) {
for ({ componentFilePath } of componentsDiffContents) {
try {
const content = await readFile(componentFilePath, "utf-8")
const currentVersion = getVersion(content)
Expand All @@ -282870,11 +282871,15 @@ async function run() {
core.setFailed(`❌ Version of ${componentsDiffContents.length} dependencies needs to be increased.`)
core.setFailed(`🚀 To fix the versions, in your terminal go to project root path and run the command below:`)

core.setOutput('#Linux Command', linuxCommand)
core.setOutput('#MacOs Command', macCommand)

console.log(`\n#Linux
${linuxCommand}

#MacOS
${macCommand}\n`)
${macCommand}\n`
)
}


Expand Down
11 changes: 8 additions & 3 deletions .github/actions/git-diff-on-components/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,10 @@ async function run() {
}

if (componentsDiffContents.length) {
let linuxCommand, macCommand = ''
let linuxCommand = ''
let macCommand = ''

for ({ dependencyFilePath, componentFilePath } of componentsDiffContents) {
for ({ componentFilePath } of componentsDiffContents) {
try {
const content = await readFile(componentFilePath, "utf-8")
const currentVersion = getVersion(content)
Expand All @@ -366,11 +367,15 @@ async function run() {
core.setFailed(`❌ Version of ${componentsDiffContents.length} dependencies needs to be increased.`)
core.setFailed(`🚀 To fix the versions, in your terminal go to project root path and run the command below:`)

core.setOutput('#Linux Command', linuxCommand)
core.setOutput('#MacOs Command', macCommand)

console.log(`\n#Linux
${linuxCommand}

#MacOS
${macCommand}\n`)
${macCommand}\n`
)
}


Expand Down
1 change: 1 addition & 0 deletions .github/workflows/components-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
pull_request:
branches:
- master
- autorev-fix-commands
paths:
- 'components/**'

Expand Down
2 changes: 1 addition & 1 deletion components/agendor/agendor.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
personId: {
type: "string",
label: "Person ID",
description: "The ID of the person to retrieve.",
description: "The ID of the person to retrievaaae.",
async options(prevContext) {
const persons = await this.listPersons(prevContext.page + 1);
return persons.data.map((person) => ({
Expand Down
Loading