8000 ci/cd: disable some actions by default · Issue #130 · octomation/go-module · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ci/cd: disable some actions by default #130

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

Open
kamilsk opened this issue Jun 13, 2023 · 2 comments
Open

ci/cd: disable some actions by default #130

kamilsk opened this issue Jun 13, 2023 · 2 comments
Assignees
Labels
effort: easy An issue is easy to implement. impact: medium An issue has medium impact. scope: docs An issue related to documentation. scope: inventory An issue related to auxiliary code, e.g., CI config, Makefiles, etc. type: improvement A new improvement proposal.

Comments

@kamilsk
Copy link
Member
kamilsk commented Jun 13, 2023

Motivation: a created from the template repository has broken builds, e.g.,

image

Proof of concept

ENABLED_ACTIONS=(
  caches
  cd
  ci
  deps
  docs <- failed from scratch
  runs
  stale
  tools
)
# or
ENABLED_ACTIONS=[caches,...,tools]

Use contains https://docs.github.com/en/actions/learn-github-actions/expressions#contains.

@kamilsk kamilsk added type: improvement A new improvement proposal. scope: docs An issue related to documentation. scope: inventory An issue related to auxiliary code, e.g., CI config, Makefiles, etc. impact: medium An issue has medium impact. effort: easy An issue is easy to implement. labels Jun 13, 2023
@kamilsk kamilsk added this to the Ready to scale, v1.1 milestone Jun 13, 2023
@kamilsk kamilsk self-assigned this Jun 13, 2023
@kamilsk kamilsk changed the title ci/cd: disable actions by default ci/cd: disable some actions by default Jun 14, 2023
@kamilsk
Copy link
Member Author
kamilsk commented Jun 14, 2023

The alternative is to provide more convenient messages to handle failed builds.

@kamilsk
Copy link
Member Author
kamilsk commented Jun 18, 2023

https://github.com/actions/configure-pages/blob/f156874f8191504dae5b037505266ed5dda6c382/action.yml#L18-L19

Run actions/configure-pages@v3
  with:
    token: ***
    enablement: false
Error: Get Pages site failed. Please verify that the repository has Pages enabled and configured to build using GitHub Actions, or consider exploring the `enablement` parameter for this action.
Error: HttpError: Not Found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort: easy An issue is easy to implement. impact: medium An issue has medium impact. scope: docs An issue related to documentation. scope: inventory An issue related to auxiliary code, e.g., CI config, Makefiles, etc. type: improvement A new improvement proposal.
Projects
Status: Backlog
Development

No branches or pull requests

1 participant
0