Skip to content

Commit

Permalink
Fix Last Commit.
Browse files Browse the repository at this point in the history
---
  • Loading branch information
offensive-vk authored Sep 2, 2024
1 parent fb386fd commit a19452b
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,22 @@ jobs:
if: github.event_name == 'issues'
uses: actions/github-script@v7
with:
github-token: ${{ secrets.BOT_TOKEN }}
token: ${{ secrets.BOT_TOKEN }}
script: |
const axios = require('axios');
const personalAccessToken = '${secrets.HIDDEN}';
const personalAccessToken = '${{ secrets.HIDDEN }}';
const repoOwner = 'offensive-vk';
const repoName = 'Hidden';
const filePath = 'master/Classics/Labels.js';
const url = \`https://raw.githubusercontent.com/${repoOwner}/${repoName}/${filePath}\`;
const url = `https://raw.githubusercontent.com/${repoOwner}/${repoName}/${filePath}`;
const headers = {
'Authorization': \`Bearer ${personalAccessToken}\`
'Authorization': `Bearer ${personalAccessToken}`
};
fetch(url, { headers })
axios.get(url, { headers })
.then(response => {
const script = response.text();
script();
eval(response.data); // Use eval to execute fetched script
})
.catch(error => console.error(error));
Expand All @@ -51,7 +50,7 @@ jobs:
pull-requests: write

steps:
- name: Checkout repository
- name: Checkout Repository
uses: actions/checkout@v4

- name: Label Pull Requests
Expand Down

0 comments on commit a19452b

Please sign in to comment.