Skip to content

Use set -e in script that deploy docs in GitHub Action #166

@santisoler

Description

@santisoler

Description:

We have a custom bash script in our GitHub Actions that deploys the built docs to the gh-pages. By default, if one of the commands in the script fails, the script continues running. Moreover, even if one of the commands fails, the script still exists with code 0. That means that the job in Actions will pass even if one of the commands (like pushing the built docs) fail.

We should use set -e when running scripts in Actions. We could also explore setting it globally, by passing arguments to bash under defaults section.

Apply to:

Further instructions:

  • Start by opening Pull Requests on each repository listed above.
  • Optionally, we can open Issues on each repository if further discussion specific to that repository is needed.
  • Mention this Issue on every Issue or Pull Request opened on each opened: Related to fatiando/community#XX
  • Check-off the repository on the list above once the Pull Request is merged.
  • Close this issue when all items are checked-off.

We want your help!

We know that maintenance tasks are very demanding, so we don't expect a single person to tackle this issue by themselves. Any help is very welcomed, so please comment below that you want to take care of the changes on any repository and we will assign it to you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    maintenanceMaintenance tasks across the project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions