Skip to content

Commit 1d40e3b

Browse files
authored
Merge pull request #631 from dlidstrom/block
2 parents a4d43ee + d5ead07 commit 1d40e3b

File tree

2 files changed

+9
-17
lines changed

2 files changed

+9
-17
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
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\
5151

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

6565
- name: Comment pull request
66-
uses: actions/github-script@0.3.0
66+
uses: actions/github-script@v7
6767
if: github.event_name == 'pull_request'
6868
with:
6969
github-token: ${{ secrets.GITHUB_TOKEN }}
7070
script: |
7171
const fs = require('fs');
7272
const filename = "Build/_build/TestResult.html";
73-
const contents = fs.readFileSync(filename, "utf8");
73+
const body = fs.readFileSync(filename, "utf8");
7474
const { issue: { number: issue_number }, repo: { owner, repo } } = context;
75-
github.issues.createComment({ issue_number, owner, repo, body: contents });
75+
github.rest.issues.createComment({ issue_number, owner, repo, body });
7676
7777
- name: Create release
7878
id: create_release
79-
uses: actions/create-release@v1
79+
uses: softprops/action-gh-release@v2
8080
env:
8181
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8282
with:
8383
tag_name: ${{ steps.tag.outputs.new_tag }}
84-
release_name: Release v${{ steps.tag.outputs.new_tag }}
84+
name: Release v${{ steps.tag.outputs.new_tag }}
8585
draft: false
8686
prerelease: ${{ github.event_name == 'pull_request' }}
87-
88-
- name: Upload artifact
89-
id: upload-artifact
90-
uses: actions/[email protected]
91-
env:
92-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
93-
with:
94-
upload_url: ${{ steps.create_release.outputs.upload_url }}
95-
asset_path: _install\${{ env.BUILD_VERSION }}.zip
96-
asset_name: ${{ env.BUILD_VERSION }}.zip
97-
asset_content_type: application/zip
87+
files: |
88+
_install/${{ env.BUILD_VERSION }}.zip

Snittlistan.Web/Web.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
<add requestHeader="User-Agent"/>
8484
</scanHeaders>
8585
<denyStrings>
86+
<add string="python-requests"/>
8687
<add string="intrepid"/>
8788
<add string="ZmEu"/>
8889
<add string="Python-urllib"/>

0 commit comments

Comments
 (0)