Skip to content

Commit

Permalink
rework workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
stas-sultanov committed Nov 2, 2024
1 parent 82107d0 commit b2957c4
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 45 deletions.
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
#
# https://github.com/microsoft/action-psscriptanalyzer
# For more information on PSScriptAnalyzer in general, see
# https://github.com/PowerShell/PSScriptAnalyzer

name: PSScriptAnalyzer

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '28 9 * * 3'

permissions:
contents: read
Expand Down Expand Up @@ -47,3 +36,11 @@ jobs:
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif

- name: Run DevSkim scanner
uses: microsoft/DevSkim-Action@v1

- name: Upload DevSkim scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: devskim-results.sarif
38 changes: 38 additions & 0 deletions .github/workflows/ReleasePowerPlatform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

name: ReleasePowerPlatform

on:
push:
branches: [ "main" ]
paths: ["sources/PowerPlatform"]

jobs:
build:
name: Upload Release Asset
runs-on: ubuntu-latest
steps:

- name: Checkout code
uses: actions/checkout@v2

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./sources/PowerPlatform
asset_name: PowerPlatfrom
asset_content_type: text/plain
34 changes: 0 additions & 34 deletions .github/workflows/devskim.yml

This file was deleted.

0 comments on commit b2957c4

Please sign in to comment.