Skip to content

Commit

Permalink
Merge pull request #60 from fraunhofer-iem/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
janniclas authored Dec 2, 2021
2 parents b8cdedb + a62a39e commit e3d87c2
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
lint:
uses: fraunhofer-iem/dodo-github-visualization/.github/workflows/lint.yml@main

build:
compile:
uses: fraunhofer-iem/dodo-github-visualization/.github/workflows/compile.yml@main
needs: lint

tag:
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
needs: build
needs: compile
uses: fraunhofer-iem/dodo-github-visualization/.github/workflows/tag.yml@main
with:
suffix: vortex
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ jobs:
lint:
uses: fraunhofer-iem/dodo-github-visualization/.github/workflows/lint.yml@main

build:
compile:
uses: fraunhofer-iem/dodo-github-visualization/.github/workflows/compile.yml@main
needs: lint
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
lint:
uses: fraunhofer-iem/dodo-github-visualization/.github/workflows/lint.yml@main

build:
compile:
uses: fraunhofer-iem/dodo-github-visualization/.github/workflows/compile.yml@main
needs: lint

tag:
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch'}}
needs: build
needs: compile
uses: fraunhofer-iem/dodo-github-visualization/.github/workflows/tag.yml@main

release:
Expand Down
21 changes: 13 additions & 8 deletions .github/workflows/updateDeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
type: string

workflow_dispatch:
inputs:
tag:
description: Tag to be pushed to dodo-deployment
required: true
type: string

jobs:
updateDeployment:
Expand All @@ -20,21 +25,21 @@ jobs:
token: ${{ secrets.ORG_ACCESS_TOKEN }}
submodules: true

- name: Prepare submodule
- run: |
git submodule update --init --recursive -- dodo-github-visualization
cd dodo-github-visualization
git fetch --all --tags
- name: Checkout desired tag (workflow_call)
if: ${{ github.event_name != 'workflow_dispatch' }}
run: |
git submodule update --init --recursive -- dodo-github-visualization
cd dodo-github-visualization
git fetch --all --tags
git checkout ${{ inputs.tag }}
cd ..
- name: Checkout desired tag (workflow_dispatch)
if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
git submodule update --init --recursive -- dodo-github-visualization
cd dodo-github-visualization
git fetch --all --tags
git checkout ${{ github.event.inputs.tag }}
cd ..
Expand All @@ -47,11 +52,11 @@ jobs:
- name: Push changes (workflow_call)
if: ${{ github.event_name != 'workflow_dispatch' }}
run: |
git commit -m "dodo-github-visualization@${{ inputs.tag }}"
git commit -m "dodo-github-visualization@${{ inputs.tag }}" || echo "dodo-deployment/dodo-github-visualization already on ${{ inputs.tag }}"
git push
- name: Push changes (workflow_dispatch)
if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
git commit -m "dodo-github-visualization@${{ github.event.inputs.tag }}"
git commit -m "dodo-github-visualization@${{ github.event.inputs.tag }}" || echo "dodo-deployment/dodo-github-visualization already on ${{ github.event.inputs.tag }}"
git push

0 comments on commit e3d87c2

Please # to comment.