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

Updatess #394

Closed
wants to merge 10 commits into from
Closed

Updatess #394

wants to merge 10 commits into from

Conversation

vishalvivekm
Copy link
Contributor

Notes for Reviewers

This PR fixes #

Signed commits

  • Yes, I signed my commits.

Copy link

netlify bot commented Oct 19, 2024

Deploy Preview for bejewelled-pegasus-b0ce81 ready!

Name Link
🔨 Latest commit f48e6fd
🔍 Latest deploy log https://app.netlify.com/sites/bejewelled-pegasus-b0ce81/deploys/6713b359cb6ea10008038a53
😎 Deploy Preview https://deploy-preview-394--bejewelled-pegasus-b0ce81.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Signed-off-by: Vivek Vishal <[email protected]>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this file is included in the commit for the sake of preview

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this file be persisted to the repo?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename this file, @SAHU-01

update-pricing-and-frontmatter:
runs-on: ubuntu-latest
env:
PRICING_FILE: 'pricing-data.json'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename variable and file, @SAHU-01

PRICING_FILE: 'pricing-data.json'

steps:
- name: Trigger Pricing List workflow and wait for completion
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove "pricing"

steps:
- name: Trigger Pricing List workflow and wait for completion
id: trigger-workflow
run: |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use GitHub native call, not an API call, @SAHU-01


echo "Triggered workflow, waiting for completion..."

while true; do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What? No.

run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add ${{ env.PRICING_FILE }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename

with:
go-version: '1.21'

- name: Run update_frontmatter.go
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is a go program really necessary?

git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add ${{ env.PRICING_FILE }}
git diff --quiet && git diff --staged --quiet || (git commit -m "Update front matter based on new pricing data" && git push)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not pricing

git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add ${{ env.PRICING_FILE }}
git diff --quiet && git diff --staged --quiet || (git commit -m "Update front matter based on new pricing data" && git push)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use git commands. Use the same autocommitter that we use in many other workflows.

.matterinfo {
font-weight: $font-weight-medium;
background: $black;
font-family: "Open Sans";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not Qanelas Soft, huh?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this copied from Cloud?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants