Skip to content

Commit

Permalink
internal/ci: only run release workflow on main repo
Browse files Browse the repository at this point in the history
The only workflow we need to have running on the trybot repo is the
trybot workflow itself. This workflow updates the caches for workflows
in the trybot repo, so that the fake PRs that we create there can use
up-to-date caches when they themselves run the trybot (and other)
workflows.

Signed-off-by: Paul Jolly <paul@myitcv.io>
Change-Id: Ibcd72f258911e528dfeb04fced84ca33baef33d5
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/549503
Unity-Result: CUEcueckoo <cueckoo@cuelang.org>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
  • Loading branch information
myitcv committed Feb 8, 2023
1 parent 1b6fb4e commit ce37b63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
defaults:
run:
shell: bash
if: ${{github.repository == 'cue-lang/cue'}}
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions internal/ci/github/release.cue
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ release: _base.#bashWorkflow & {
}
jobs: goreleaser: {
"runs-on": _#linuxMachine
if: "${{github.repository == '\(core.#githubRepositoryPath)'}}"
steps: [
_base.#checkoutCode & {
with: "fetch-depth": 0
Expand Down

0 comments on commit ce37b63

Please sign in to comment.