Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
hakanlundvall committed Jan 2, 2024
1 parent 7d394af commit 93c50ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '16'
- name: Install dependencies
run: npm install @actions/http-client
- name: HTTP Push
Expand Down
2 changes: 1 addition & 1 deletion http-push.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const http = require('@actions/http-client');
let httpc = new http.HttpClient('github-actions');
(async () => {
let res = await httpc.post('http://www.lundvall.info/templog/firmware', JSON.stringify({run_id: process.env.GITHUB_RUN_ID}));
let res = await httpc.post('https://www.lundvall.info/templog/firmware', JSON.stringify({run_id: process.env.GITHUB_RUN_ID}));
if (res.message.statusCode != 200) {
throw new Error(`Failed to push: ${res.message.statusMessage}`);
}
Expand Down

0 comments on commit 93c50ce

Please sign in to comment.