Skip to content

Commit

Permalink
Merge pull request #631 from dlidstrom/block
Browse files Browse the repository at this point in the history
  • Loading branch information
dlidstrom authored Sep 18, 2024
2 parents a4d43ee + d5ead07 commit 1d40e3b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
25 changes: 8 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
run: msbuild build.build -t:All -p:Version=$env:BUILD_VERSION -p:WIX_PATH=$env:wix -p:NUnitConsoleRunnerPath=$env:GITHUB_WORKSPACE\packages\nunit.consolerunner\3.15.0\

- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: 'Test Result'
path: Build\_build\TestResult.html
Expand All @@ -63,35 +63,26 @@ jobs:
tag: ${{ env.BUILD_VERSION }}

- name: Comment pull request
uses: actions/github-script@0.3.0
uses: actions/github-script@v7
if: github.event_name == 'pull_request'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const fs = require('fs');
const filename = "Build/_build/TestResult.html";
const contents = fs.readFileSync(filename, "utf8");
const body = fs.readFileSync(filename, "utf8");
const { issue: { number: issue_number }, repo: { owner, repo } } = context;
github.issues.createComment({ issue_number, owner, repo, body: contents });
github.rest.issues.createComment({ issue_number, owner, repo, body });
- name: Create release
id: create_release
uses: actions/create-release@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tag.outputs.new_tag }}
release_name: Release v${{ steps.tag.outputs.new_tag }}
name: Release v${{ steps.tag.outputs.new_tag }}
draft: false
prerelease: ${{ github.event_name == 'pull_request' }}

- name: Upload artifact
id: upload-artifact
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: _install\${{ env.BUILD_VERSION }}.zip
asset_name: ${{ env.BUILD_VERSION }}.zip
asset_content_type: application/zip
files: |
_install/${{ env.BUILD_VERSION }}.zip
1 change: 1 addition & 0 deletions Snittlistan.Web/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
<add requestHeader="User-Agent"/>
</scanHeaders>
<denyStrings>
<add string="python-requests"/>
<add string="intrepid"/>
<add string="ZmEu"/>
<add string="Python-urllib"/>
Expand Down

0 comments on commit 1d40e3b

Please sign in to comment.