Skip to content

Commit

Permalink
Revert "CI: add logging to trusted workflow"
Browse files Browse the repository at this point in the history
This reverts commit a26d935.

Turns out the action was working fine, the UI was just slow
to update.

Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
  • Loading branch information
lmb committed Nov 23, 2023
1 parent a26d935 commit 4b05803
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/trusted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
if: github.event.workflow_run.event == 'pull_request'
steps:
- name: 'Download artifact'
uses: actions/github-script@v7
uses: actions/github-script@v3
with:
script: |
var artifacts = await github.actions.listWorkflowRunArtifacts({
Expand All @@ -35,19 +35,16 @@ jobs:
fs.writeFileSync('${{github.workspace}}/apidiff.zip', Buffer.from(download.data));
- run: unzip apidiff.zip
- name: 'Add or remove label'
uses: actions/github-script@v7
uses: actions/github-script@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
debug: true
script: |
var fs = require('fs');
var jsonData = JSON.parse(fs.readFileSync('apidiff.json', 'utf8'));
var issueNumber = jsonData.id;
var semverType = jsonData["semver-type"];
console.log('pr is ' + issueNumber);
console.log('semver-type is ' + semverType);
if (semverType === 'major') {
// Add 'breaking-change' label
await github.issues.addLabels({
Expand Down

0 comments on commit 4b05803

Please sign in to comment.