This is an archive of the discontinued LLVM Phabricator instance.

[Workflow] Run the repository sync script from GH.
ClosedPublic

Authored by thieta on Aug 2 2023, 3:38 AM.

Details

Summary

Also various fixes to the script to work correctly
in GH actions.

Diff Detail

Event Timeline

thieta created this revision.Aug 2 2023, 3:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 2 2023, 3:38 AM
thieta requested review of this revision.Aug 2 2023, 3:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 2 2023, 3:38 AM
thieta edited the summary of this revision. (Show Details)Aug 2 2023, 3:39 AM
thieta added reviewers: tstellar, kwk.
kwk accepted this revision.Aug 3 2023, 5:32 AM

LGTM

.github/workflows/sync-release-repo.yml
6

This is good practice! I'm glad you've pointed it out.

llvm/utils/git/sync-release-repo.sh
28

Just to be sure: The fact that you've written GH_TOKEN: ${{ secrets.GH_TOKEN }} in the workflow file will hide or mask the token here, when looking at the output, right?

This revision is now accepted and ready to land.Aug 3 2023, 5:32 AM
thieta added inline comments.Aug 3 2023, 5:58 AM
llvm/utils/git/sync-release-repo.sh
28

Yeah. It searchs the output for the string that's in the value of the column to mask it.

asl added a subscriber: asl.Aug 7 2023, 1:02 PM
asl added inline comments.
.github/workflows/sync-release-repo.yml
9

We tend to use more descriptive names for tokens to ensure they are unique "per task".

thieta added inline comments.Aug 7 2023, 1:30 PM
.github/workflows/sync-release-repo.yml
9

Feel free to add the secret with a better name and I'll adapt the script to that name tomorrow.

thieta updated this revision to Diff 548890.Aug 10 2023, 12:01 AM
thieta edited the summary of this revision. (Show Details)
This revision was landed with ongoing or failed builds.Aug 10 2023, 12:02 AM
This revision was automatically updated to reflect the committed changes.