fix(extension): resetting colorsets used in color conditionals (#217) #1958
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
workflow_dispatch: | |
inputs: | |
action_type: | |
description: 'Action type' | |
required: true | |
jobs: | |
prepare: | |
runs-on: ubuntu-latest | |
outputs: | |
extension: ${{ steps.extension.outputs.any_changed }} | |
server: ${{ steps.server.outputs.any_changed }} | |
geo: ${{ steps.geo.outputs.any_changed }} | |
tools: ${{ steps.tools.outputs.any_changed }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: changed files for extension | |
id: extension | |
uses: tj-actions/changed-files@v36 | |
with: | |
files: | | |
extension | |
.github/workflows/ci-extension.yml | |
.github/workflows/ci-extension-version-update.yml | |
.github/workflows/deploy-extension-dev.yml | |
.github/workflows/deploy-extension-prod.yml | |
- name: changed files for server | |
id: server | |
uses: tj-actions/changed-files@v36 | |
with: | |
files: | | |
server | |
.github/workflows/ci-server.yml | |
.github/workflows/build-server.yml | |
.github/workflows/deploy-server-dev.yml | |
.github/workflows/deploy-server-prod.yml | |
- name: changed files for tools | |
id: tools | |
uses: tj-actions/changed-files@v36 | |
with: | |
files: | | |
tools | |
.github/workflows/ci-tools.yml | |
- name: changed files for geo | |
id: geo | |
uses: tj-actions/changed-files@v36 | |
with: | |
files: | | |
geo | |
.github/workflows/ci-geo.yml | |
.github/workflows/build-geo.yml | |
.github/workflows/deploy-geo-dev.yml | |
.github/workflows/deploy-geo-prod.yml | |
# ci-extension-version-update: | |
# needs: prepare | |
# if: ${{ !failure() && needs.prepare.outputs.extension == 'true' && github.event_name == 'push' && github.ref_name == 'main' }} | |
# uses: ./.github/workflows/ci-extension-version-update.yml | |
# with: | |
# commit-sha: ${{ github.sha }} | |
ci-extension: | |
needs: | |
- prepare | |
# - ci-extension-version-update | |
if: needs.prepare.outputs.extension == 'true' || github.event.inputs.action_type == 'extension' | |
uses: ./.github/workflows/ci-extension.yml | |
ci-server: | |
needs: prepare | |
if: needs.prepare.outputs.server == 'true' || github.event.inputs.action_type == 'server' | |
uses: ./.github/workflows/ci-server.yml | |
ci-tools: | |
needs: prepare | |
if: needs.prepare.outputs.tools == 'true' || github.event.inputs.action_type == 'tools' | |
uses: ./.github/workflows/ci-tools.yml | |
with: | |
release_tools: ${{ github.event_name == 'push' && github.ref_name == 'main' }} | |
ci-geo: | |
needs: prepare | |
if: needs.prepare.outputs.geo == 'true' || github.event.inputs.action_type == 'geo' | |
uses: ./.github/workflows/ci-geo.yml | |
ci: | |
runs-on: ubuntu-latest | |
needs: | |
- ci-extension | |
- ci-server | |
- ci-tools | |
- ci-geo | |
if: '!failure()' | |
steps: | |
- run: echo OK | |
deploy-extension-dev: | |
needs: ci-extension | |
if: ${{ success() && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref_name == 'main' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Dispatch deployment | |
uses: peter-evans/repository-dispatch@v2 | |
with: | |
event-type: deploy-extension-dev | |
# build-server: | |
# needs: ci-server | |
# if: ${{ success() && github.event_name == 'push' && github.ref_name == 'main' }} | |
# uses: ./.github/workflows/build-server.yml | |
# deploy-server-dev: | |
# needs: build-server | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Dispatch deployment | |
# uses: peter-evans/repository-dispatch@v2 | |
# with: | |
# event-type: deploy-server-dev | |
build-geo: | |
needs: ci-geo | |
if: ${{ success() && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref_name == 'main' }} | |
uses: ./.github/workflows/build-geo.yml | |
deploy-geo-dev: | |
needs: build-geo | |
runs-on: ubuntu-latest | |
steps: | |
- name: Dispatch deployment | |
uses: peter-evans/repository-dispatch@v2 | |
with: | |
event-type: deploy-geo-dev |