Skip to content

dapr/.github

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

.github

Shared GitHub Actions workflows for the dapr organisation.

Shared workflows

Automerge and autoupdate (automerge.yaml)

Squash-merges PRs labelled automerge that have been approved by a maintainer. Also updates branches of PRs labelled automerge or autoupdate that have fallen behind their base branch.

# .github/workflows/dapr-bot-schedule.yml
on:
  schedule:
    - cron: '*/10 * * * *'
  workflow_dispatch:

jobs:
  automerge:
    uses: dapr/.github/.github/workflows/automerge.yaml@main
    with:
      maintainer-teams: maintainers,co-maintainers
    secrets:
      dapr_bot_token: ${{ secrets.DAPR_BOT_TOKEN }}

Prune stale (prune-stale.yaml)

Marks issues and PRs as stale after 90 days of inactivity and closes them after a further 7 days. The stale and close thresholds are configurable via inputs.

# .github/workflows/dapr-bot-schedule.yml
on:
  schedule:
    - cron: '*/10 * * * *'
  workflow_dispatch:

jobs:
  prune_stale:
    uses: dapr/.github/.github/workflows/prune-stale.yaml@main
    with:
      days-before-pr-stale: 30      # default: 90
      days-before-issue-stale: 30   # default: 90
      days-before-pr-close: 7       # default: 7
      days-before-issue-close: 7    # default: 7
    secrets:
      dapr_bot_token: ${{ secrets.DAPR_BOT_TOKEN }}

Setup Dapr CLI (setup-dapr-cli)

Installs the Dapr CLI. Defaults to the highest semver release — stable releases are preferred over pre-releases of the same version.

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: dapr/.github/.github/actions/setup-dapr-cli@main
        # with:
        #   version: '1.14.0'   # omit to use latest stable
        #   commit: ''           # dapr/cli commit SHA or ref; builds from source, overrides version

Setup Dapr Runtime (setup-dapr-runtime)

Initialises the Dapr runtime via dapr init. Requires the Dapr CLI to be installed first (use setup-dapr-cli). Defaults to the highest semver release.

version and commit are complementary: dapr init always runs (using version to set up the runtime environment — Redis, Zipkin, placement service, etc.), and if commit is also set, the daprd binary is replaced with one built from that ref afterwards.

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: dapr/.github/.github/actions/setup-dapr-cli@main

      - uses: dapr/.github/.github/actions/setup-dapr-runtime@main
        # with:
        #   version: '1.14.0'   # version passed to "dapr init"; omit to use latest stable
        #   commit: ''           # dapr/dapr commit SHA or ref; builds daprd from source and
        #                        # replaces the binary after init (version still controls init)

      - run: dapr --version

Backport (backport.yaml)

Backports merged PRs to release branches when a backport/release-* label is applied.

# .github/workflows/backport.yaml
on:
  pull_request_target:
    types:
      - closed
      - labeled

jobs:
  backport:
    uses: dapr/.github/.github/workflows/backport.yaml@main
    secrets:
      dapr_bot_token: ${{ secrets.DAPR_BOT_TOKEN }}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors