From d60b67c5d554da87c0be18fece56373bdaa5213a Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 8 Sep 2020 11:04:20 +0000 Subject: [PATCH] Sync workflows from vc-module-core --- .github/workflows/synced-main.yml | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/.github/workflows/synced-main.yml b/.github/workflows/synced-main.yml index a261dde..2b8b708 100644 --- a/.github/workflows/synced-main.yml +++ b/.github/workflows/synced-main.yml @@ -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: @@ -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 }} @@ -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"