Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: remove workflow run name changes #204

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,3 @@ jobs:

- name: Remove dist folder
run: rm -rf dist

- name: Set custom workflow title
uses: actions/github-script@v6
with:
script: |
const branch = process.env.GITHUB_REF.replace('refs/heads/', '');
const version = '${{ steps.vars.outputs.version }}';
const shortHash = '${{ steps.vars.outputs.short_hash }}';
const customTitle = `v${version}-${shortHash} ${branch}`;

await github.rest.actions.updateWorkflowRun({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: context.runId,
name: customTitle
});