We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ce7ce9 commit e30a254Copy full SHA for e30a254
update.js
@@ -3,6 +3,14 @@
3
import fs from 'fs';
4
import { execSync } from 'child_process';
5
6
+const headers = {
7
+ 'User-Agent': 'shopware tag updater',
8
+}
9
+
10
+if (process.env.GITHUB_TOKEN) {
11
+ headers['Authorization'] = `Bearer ${process.env.GITHUB_TOKEN}`;
12
13
14
/**
15
* Update Shopware core to latest version
16
*
@@ -14,7 +22,9 @@ import { execSync } from 'child_process';
22
async function update() {
23
try {
24
// Fetch tags from GitHub
17
- const response = await fetch('https://api.github.com/repos/shopware/core/tags?per_page=50');
25
+ const response = await fetch('https://api.github.com/repos/shopware/core/tags?per_page=50', {
26
+ headers
27
+ });
18
28
const tags = await response.json();
19
29
20
30
// Process each tag
0 commit comments