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

ci: remove redundant 'cd build'; use 'set -e' in scripts #70

Closed
wants to merge 3 commits into from
Closed

ci: remove redundant 'cd build'; use 'set -e' in scripts #70

wants to merge 3 commits into from

Conversation

umarcor
Copy link
Member

@umarcor umarcor commented Dec 14, 2021

This PR brings a couple of minor enhancements to the CI scripts.

@umarcor
Copy link
Member Author

umarcor commented Dec 14, 2021

I think that the removal of cd build in this PR does fix the "empty" commit SHA in the latest updates to https://github.com/SymbiFlow/symbiflow.github.io/commits/master.

GitHub
Published SymbiFlow Website. Contribute to SymbiFlow/symbiflow.github.io development by creating an account on GitHub.

@umarcor umarcor requested a review from mithro December 14, 2021 18:55
- name: Deploy website
if: github.event_name == 'push'
run: |
git config --global user.name SymbiFlow
git config --global user.mail robot@mith.ro
git config --global push.default simple
git fetch origin --tags
Copy link
Member

Choose a reason for hiding this comment

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

We want --tags so that git describe gives the right output.

Copy link
Member Author

Choose a reason for hiding this comment

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

Option fetch-depth: 0 was implemented for this use case. See:

https://github.com/actions/checkout/#usage

    # Number of commits to fetch. 0 indicates all history for all branches and tags.
    # Default: 1
    fetch-depth: ''

and actions/checkout#250 (comment).

Signed-off-by: Unai Martinez-Corral <umartinezcorral@antmicro.com>
Signed-off-by: Unai Martinez-Corral <umartinezcorral@antmicro.com>
Signed-off-by: Unai Martinez-Corral <umartinezcorral@antmicro.com>
@umarcor umarcor requested a review from kgugala February 8, 2022 17:36
@mithro mithro requested a review from mgielda February 9, 2022 00:48
@umarcor
Copy link
Member Author

umarcor commented Feb 17, 2022

Closing because of https://github.com/f4pga/f4pga-website/tree/main/.github/workflows.

GitHub
Contribute to f4pga/f4pga-website development by creating an account on GitHub.

@umarcor umarcor closed this Feb 17, 2022
@umarcor umarcor deleted the ci-build branch February 17, 2022 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants