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

Unpriviledged pr test #1031

Closed
wants to merge 5 commits into from
Closed

Unpriviledged pr test #1031

wants to merge 5 commits into from

Conversation

tstellar
Copy link
Owner

No description provided.

This adds a new composite workflow that allows you to download
artifacts from other workflows without using an access token.

actions/download-artifact from GitHub requires an access token
in order to download artifacts from a different workflow, which
is why we can't use it here if we want to avoid using a token.

See https://github.com/actions/download-artifact?tab=readme-ov-file#download-artifacts-from-other-workflow-runs-or-repositories
Copy link

⚠️ Python code formatter, darker found issues in your code. ⚠️

You can test this locally with the following command:
darker --check --diff -r b4896b44395cd9ad6a8f3450c976cb6329ff2cef...fadc4b57852f5a9906a8d9fe14b6b08506b5ba8f llvm/utils/git/github-automation.py
View the diff from darker here.
--- github-automation.py	2024-07-19 01:28:20.000000 +0000
+++ github-automation.py	2024-07-19 02:45:02.348776 +0000
@@ -94,11 +94,11 @@
         self.issue.create_comment(comment)
         return True
 
 
 def human_readable_size(size, decimal_places=2):
-    for unit in ['B', "KiB", "MiB", "GiB", "TiB", "PiB"]:
+    for unit in ["B", "KiB", "MiB", "GiB", "TiB", "PiB"]:
         if size < 1024.0 or unit == "PiB":
             break
         size /= 1024.0
     return f"{size:.{decimal_places}f} {unit}"
 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant