Skip to content

Commit

Permalink
Sync workflows from vc-module-core
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions committed Sep 8, 2020
1 parent 01fdb5c commit d60b67c
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/synced-main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
name: CI
on:
workflow_dispatch:
push:
paths-ignore:
- '.github/**'
- 'docs/**'
- 'build/**'
- 'README.md'
- 'LICENSE'
branches: [ master, dev ]
pull_request:
paths-ignore:
- '.github/**'
- 'docs/**'
- 'build/**'
- 'README.md'
- 'LICENSE'
branches: [ master, dev ]

jobs:
Expand Down Expand Up @@ -57,7 +70,7 @@ jobs:
run: vc-build Compile

- name: Unit Tests
run: vc-build Test -skip Restore+Compile
run: vc-build Test -skip

- name: SonarCloud End
if: ${{ env.SONAR_TOKEN != 0 }}
Expand Down Expand Up @@ -128,24 +141,13 @@ jobs:
}
- name: Upload a Build Artifact to Azure Blob Storage
uses: bacongobbler/azure-blob-storage-upload@v1.1.1
uses: bacongobbler/azure-blob-storage-upload@main
with:
source_dir: '${{needs.build-package.outputs.path}}'
container_name: 'packages'
connection_string: ${{ secrets.BLOB_CONNECTION_STRING }}
sync: false

- name: Add tag "ver.${{ steps.image.outputs.tag }}"
if: ${{ env.REPO_TOKEN != 0 && (github.ref == 'refs/heads/dev' || github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'testing')) }}
uses: tvdias/github-tagger@v0.0.2
env:
REPO_TOKEN: ${{secrets.REPO_TOKEN}}
with:
repo-token: ${{ secrets.REPO_TOKEN }}
tag: ver.${{ needs.build-package.outputs.tag }}
# optional commit sha to apply the tag to
commit-sha: ${{ needs.build-package.outputs.sha }}

- name: Set Build status Successful
run: echo "::set-env name=BUILD_STATE::successful"

Expand Down

0 comments on commit d60b67c

Please sign in to comment.