Skip to content
HereticSoftwarePublic

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Actions

Shared actions for all organization repos.

- uses: HereticSoftware/actions/<action>@<sha> # v1.0.0

Pin to a commit SHA with the release tag as a comment; Renovate (helpers:pinGitHubActionDigests) updates both.

Runs dotnet run --file <file> -c Release -- --target <target> <arguments>.

Input Required Default Description
file cake.cs Cake file to execute.
target ✓ Cake target.
arguments Additional arguments, separated by spaces.
- uses: HereticSoftware/actions/cake-file@<sha>
  with:
    target: Renovate
    arguments: --repository=${{ github.repository }}

On tag runs, fails when the tagged commit is not on origin/<branch>. Passes on non-tag runs. Requires a checkout with fetch-depth: 0.

Input Required Default Description
branch main Branch the tag must be on.
- uses: actions/checkout@<sha>
  with:
    fetch-depth: 0
- uses: HereticSoftware/actions/enforce-tag-on-branch@<sha>

Runs npx renovate on the current repository, then adds the PRs from its report (prNo of each branch) to a project.

Input Required Default Description
token github.token Token Renovate uses to open PRs. With github.token, files under .github/workflows/ are skipped.
git-author github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Commit author as Name <email>.
project-url Project URL, e.g. https://github.com/orgs/<org>/projects/<n>; empty skips.
project-token Token with Projects read/write; empty skips.

The calling job needs contents, pull-requests and issues set to write. With github.token:

  • enable Settings → Actions → General → Allow GitHub Actions to create and approve pull requests;
  • .github/workflows/** is skipped (forced CLI packageRules entry), since github.token cannot push workflow changes.

Any other token updates workflows too. It needs Contents, Pull requests, Issues, Workflows and Commit statuses read/write, Dependabot alerts read, and organization Members read.

jobs:
  renovate:
    runs-on: ubuntu-latest
    permissions:
      contents: write
      pull-requests: write
      issues: write
    steps:
      - uses: HereticSoftware/actions/renovate@<sha>
        with:
          token: ${{ secrets.RENOVATE_TOKEN || github.token }}
          project-url: ${{ vars.DEPENDENCIES_PROJECT_URL }}
          project-token: ${{ secrets.PROJECT_TOKEN }}

Installs the SDK from global.json. sdk.rollForward selects the installed version:

rollForward Installs (for 10.0.100)
latestPatch Latest 10.0.1xx
latestFeature Latest 10.0.x
latestMinor Latest 10.x
latestMajor Latest
other / unset 10.0.100
Input Required Default Description
workload-restore false Run dotnet workload restore after install.
- uses: HereticSoftware/actions/setup-dotnet@<sha>
  with:
    workload-restore: true

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors