Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Update branch name for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
meain committed Oct 10, 2022
1 parent 7472b22 commit 8a770c1
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: Build/Release Corso
on:
workflow_dispatch: # TODO(meain): post-merge: verify manual dispatch
push:
# TODO(meain): update references to release-ci before merge
branches: [ release-ci ]
branches: [ main ]
tags: [ 'v*.*.*' ]

permissions:
Expand All @@ -15,7 +14,7 @@ permissions:

# cancel currently running jobs if a new version of the branch is pushed
concurrency:
group: release-ci-${{ github.workflow }}-${{ github.ref }}
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand All @@ -24,7 +23,7 @@ jobs:
# --- Prechecks and Checkouts ------------------------------------------------------------------------
# ----------------------------------------------------------------------------------------------------
Precheck:
uses: alcionai/corso/.github/workflows/_filechange_checker.yml@release-ci # TODO(meain): post-merge of docs-ci: change this to main
uses: alcionai/corso/.github/workflows/_filechange_checker.yml@main

Checkout:
needs: [Precheck]
Expand All @@ -40,7 +39,7 @@ jobs:
# the results will cascade onto both testing and linting.
- name: Setup Golang with cache
uses: ./.github/actions/go-setup-cache
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/release-ci' || needs.precheck.outputs.docfileschanged == 'true'
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main' || needs.precheck.outputs.docfileschanged == 'true'
with:
go-version-file: src/go.mod

Expand All @@ -51,7 +50,7 @@ jobs:
Generate-CLI-Docs:
needs: [Precheck, Checkout]
environment: Testing
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/release-ci' || needs.precheck.outputs.srcfileschanged == 'true'
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main' || needs.precheck.outputs.srcfileschanged == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -76,7 +75,7 @@ jobs:
- uses: actions/upload-artifact@master
name: Upload cli docs as artifacts
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/release-ci'
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main'
with:
name: cli-docs
path: docs/docs/cli
Expand All @@ -89,7 +88,7 @@ jobs:
needs: [Generate-CLI-Docs]
environment: Testing
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/release-ci' || needs.precheck.outputs.docfileschanged == 'true'
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main' || needs.precheck.outputs.docfileschanged == 'true'

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -119,7 +118,7 @@ jobs:
needs: [Precheck, Checkout]
environment: Testing
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/release-ci' || needs.precheck.outputs.srcfileschanged == 'true'
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main' || needs.precheck.outputs.srcfileschanged == 'true'
defaults:
run:
working-directory: src
Expand Down Expand Up @@ -179,7 +178,7 @@ jobs:
needs: [Precheck, Checkout]
environment: Testing
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/release-ci' || needs.precheck.outputs.srcfileschanged == 'true'
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main' || needs.precheck.outputs.srcfileschanged == 'true'
defaults:
run:
working-directory: src
Expand Down Expand Up @@ -211,7 +210,7 @@ jobs:

SetEnv:
environment: Testing
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/release-ci'
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
outputs:
environment: ${{ steps.set-env.outputs.environment }}
Expand All @@ -232,7 +231,7 @@ jobs:
needs: [Test-Suite, Linting, Docs-Linting, SetEnv]
environment: ${{ needs.SetEnv.outputs.environment }}
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/release-ci'
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main'
defaults:
run:
working-directory: src
Expand Down Expand Up @@ -266,7 +265,7 @@ jobs:
needs: [Test-Suite, Linting, Docs-Linting, SetEnv]
environment: ${{ needs.SetEnv.outputs.environment }}
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/release-ci'
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main'
defaults:
run:
working-directory: docs
Expand Down Expand Up @@ -306,7 +305,7 @@ jobs:
needs: [Test-Suite, Linting, Docs-Linting, SetEnv]
environment: ${{ needs.SetEnv.outputs.environment }}
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/release-ci'
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main'
defaults:
run:
working-directory: build
Expand Down

0 comments on commit 8a770c1

Please sign in to comment.