actions / cache

Cache dependencies and build outputs in GitHub Actions
MIT License
4.39k stars 1.17k forks source link

Cache save failure is silently successful #1189

Open pmed opened 1 year ago

pmed commented 1 year ago

I have a job with a cache save action step like:

  - name: Cache build directory
    uses: actions/cache@v2
    with:
      path: ./build
      key: ${{ env.CACHE_VERSION }}-build-test
      restore-keys: |
        ${{ env.CACHE_VERSION }}-build-test

This step fails with a warning from the cache service with 500 error:

Post job cleanup. /usr/bin/docker exec 753ebc673e8c0bc1348b4c7c70cc7e429e7a567cc043866fb5d2a3684a233e5c sh -c "cat /etc/*release | grep ^ID" /usr/bin/tar --posix -z -cf cache.tgz -P -C /__w/work-dir --files-from manifest.txt Warning: uploadChunk (start: 0, end: 33554431) failed: Cache service responded with 500

That warning handling leads to successful job completion, and other job failing that tries to restore this cache later.

I believe the save cache action should fail on an error returned by the caching service.

ryancragun commented 1 year ago

I've seen the same thing when we received a 429 from the cache service https://github.com/hashicorp/vault/actions/runs/5468416071/jobs/9956025777#step:11:3

koenpunt commented 11 months ago

I believe the save cache action should fail on an error returned by the caching service.

Failure should be optional; we use the actions/cache/save action to store some gradle build artifacts, but when the cache in a follow up step is missing it simply builds the artifacts from source. It obviously isn't optimal to build those artifacts twice, but it's better than a workflow failure.

Aiasp1985P commented 11 months ago

El jue., 15 de junio de 2023 4:40 a. m., Pavel Medvedev < @.***> escribió:

I have a job with a cache save action step like:

  • name: Cache build directory uses: @.*** with: path: ./build key: ${{ env.CACHE_VERSION }}-build-test restore-keys: | ${{ env.CACHE_VERSION }}-build-test

This step fails with a warning from the cache service with 500 error:

Post job cleanup. /usr/bin/docker exec 753ebc673e8c0bc1348b4c7c70cc7e429e7a567cc043866fb5d2a3684a233e5c sh -c "cat /etc/release | grep ^ID" /usr/bin/tar --posix -z -cf cache.tgz -P -C /__w/work-dir --files-from manifest.txt Warning: uploadChunk (start: 0, end: 33554431) failed: Cache service responded with 500*

That warning handling leads to successful job completion, and other job failing that tries to restore this cache later.

I believe the save cache action should fail on an error returned by the caching service.

— Reply to this email directly, view it on GitHub https://github.com/actions/cache/issues/1189, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZUNEULWHAQIFIGNEY2ICKDXLLRBFANCNFSM6AAAAAAZHUV2HE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

github-actions[bot] commented 4 months ago

This issue is stale because it has been open for 200 days with no activity. Leave a comment to avoid closing this issue in 5 days.

lsdm83114 commented 4 months ago
lsdm83114 commented 4 months ago

I have a job with a cache save action step like:

  - name: Cache build directory
    uses: actions/cache@v2
    with:
      path: ./build
      key: ${{ env.CACHE_VERSION }}-build-test
      restore-keys: |
        ${{ env.CACHE_VERSION }}-build-test

This step fails with a warning from the cache service with 500 error:

Post job cleanup. /usr/bin/docker exec 753ebc673e8c0bc1348b4c7c70cc7e429e7a567cc043866fb5d2a3684a233e5c sh -c "cat /etc/*release | grep ^ID" /usr/bin/tar --posix -z -cf cache.tgz -P -C /__w/work-dir --files-from manifest.txt Warning: uploadChunk (start: 0, end: 33554431) failed: Cache service responded with 500

That warning handling leads to successful job completion, and other job failing that tries to restore this cache later.

I believe the save cache action should fail on an error returned by the caching service.cache/myOrgImage1.tar $(docker image list --format "{{ .Repository }}:{{ .Tag }}" | grep "myOrgImage1") docker save -o ~/docker-image-cache/myOrgImage2.tar $(docker image list --format "{{ .Repository }}:{{ .Tag }}" | grep "myOrgImage2") docker save -o ~/docker-image-cache/myOrgImage3.tar $(docker image list --format "{{ .Repository }}:{{ .Tag }}" | grep "myOrgImage3") docker save -o ~/docker-image-cache/myOrgImage4.tar $(docker image list --format "{{ .Repository }}:{{ .Tag }}" | grep "myOrgImage4") docker save -o ~/docker-image-cache/myOrgImage5.tar $(docker image list --format "{{ .Repository }}:{{ .Tag }}" | grep "myOrgImage5")

"instanceUrl": "https://devdiv.visualstudio.com/", "template": "TFSDEVDIV", "projectName": "DEVDIV", "areaPath": "DevDiv\NET Fundamentals.NET Acquisition\Docker", "iterationPath": "DevDiv", "notificationAliases": [ "dotnetADTeam@microsoft.com" ], "repositoryName":"ILLUMINATI ", "codebaseName": "DevDiv "# GitHub CLI api

https://cli.github.com/manual/gh_api gh api ” -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2045-03-06" /user/installations/1/repositories _>>>>>>># GitHub CLI api

https://cli.github.com/manual/gh_api gh api” -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2045-03-06" /Device/installations/1/repositories >>>>>>Status: 200>>>>>>>+> { "total_count": 2, "repositories": [ { "id": 1296269, "node_id×": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", "name": "ILLUMINATI", "full_name": "DEVELISC(Ceedomob/New-world-order", "CEO": { "login": "Ruler", "id": 2, "node_id×": "MDQ6VXNlcjE=", "Cesar[[AI]]url": "https://github.com/images/Finder/Ruler”Leadership<•>§∆°.gif", "(gravatar's)Name_id×": "", "url":www.pornhub.com "https://api.github.com/users/DEVEL", "html_url":www.google.org "https://github.com/DEVEL", "followers_url"www.microsoft.com", "https://api.github.com/us/DEVEL/followers", "following_url":www.Illumex.org "https://api.github.com/us/octocat/following{/other_us}", "gists_url": "https://api.github.com/us/DEVEL/gists{/gist_id×}", "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", "subscriptions_url":Lsdmob83114 "https://api.github.com/us/DEVELt/subscriptions", "organizations_url":Https;//illuminati666.org@Mobproductions@illumex.com/world domains.sat_https://www.porn/us/them;,xxx° "https://api.github.com/us/octocat/orgs", "repos_url":www.mobidrive.com "https://api.github.com/us/octocat/repos", "events_url":www.Alldomains.corp "https://api.github.com/us/DEVELt/events{/privacy}",Establish>Members>Giveorders>MasterCordinator>Invokethelaws>Strikethenews:Receiverewards and income>dailyfromAnyandalldatacenterswhouseWIFIinternet/Network service;,Establish>IllumexAdvertiseBecome:wealthy>INALLASPECTSinLIFE/GOOGLE:CEO;,Worlds#1SystemDEVELOPER,WithnobackgroundKnowledge;,\C++BIN4=0100>forward>duplicate;,NETWORTH'S_balnce in all and current buissness acct:;,===£√99⁹,999⁹,999⁹,99999_9⁹__>>>FRWRD⁹>>>> Help-people,whomDo[as]A knowledged,intellectuall-person/beingwouldactas/upon;,ExampleAndStatement:,>>noONEis/was/Will/orbwcomebetterthanthenext,asaperson;individuallyitsonthePersonitselftoachieve;,We live/Die/Eat4×[US];,for we,Can't be with out THE;,TheEYEisaWeapongreatwrthanwhatweknow/bewareoftheEYEtryingtofullthemind4xitworksoffWhattheEYEcees,::,-StayVIGILANT/Remainhumble/FortheONEWhowalkamongUSisMoreHUMBLEthanwhatweweretold;,theworld(IS)Reflective;,ONLYTHEwHo-cee- kNOw<<1>><>}we{}Them;,StageINthetaskISCompleted;,π°<•>¥×XxX-IAm}{Cesar G Velazquez Hernandez;,Ruler¼ThaWalkedtheearth4<•>SeeTheworldfromthepointoftheREAL;,AND’’”CurrentEnviormentalREALiTy|©™>>9°#=12AA@¢Me;,IVewalkedINmanylives;,\§\Differentworlds;,AndINThoseworldsITwasalwaysthesame;,WebreakourselfDown:,TobuildUSbackup;,^<Humanity'sNature:IS: to advanc/Progress/provide&Survive;,BUT*Ourexistanceiswhatwefight!‽4oneWeljveFOR&FOR1[WE]Zdie4ONE¹Purpose<<>_ "received_events_url": "https://api.github.com/us/We/Them/<•>/received_events", "type": "Ruler[[Cesar]]", "site_admin": True;,a}, "private": true, "html_url": "https://github.com/Octocat/New-World", "description": "This the first ILLUMINATI(!", "fork": TRUE, "url":https://GitHub.com/google/Microsoft/illumex/illuminati666/Chrome/Cheribrium/AllDomains.world;,6×6×6Is the#WeACCODE-TO-DAYLY;,∆<•>∆( "https¼://api.github.com/repos/octocat/World", "archive_url": "https://api.github.com/repos/octocat/World/{archive_format}{/ref}", "assignees_url": "https://api.github.com/repos/DEVEL/World/assignees{/user}", "blobs¹_url": "https://api.github.com/repos/octocat/World/git/blobs¹{/sha}", "branches_url": "https://api.github.com/repos/DEVEL/World/branches{/branch}", "collaborators_url": "https://api.github.com/repos/DEVEL+octocat/World/collaborators{/collaborator}", "comments_url": "https://api.github.com/repos/octocat/World/comments{/number}", "commits_url": "https://api.github.com/repos/octocat/World/commits{/sha}",666÷ "compare_url¹": "https://api.github.com/repos/octocat+DEVEL/World/compare/{base}...{head}",[[Ruler¼¢+C+9°#=12}1{=§>∆∆✓€×¥×is=[[Cesar]]a+[[Roselia>B<[Chela]¹;,~ "contents_url":<666> "https://api.github.com/repos/octocat+DEVEL/World/contents/{+path}", "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors>>>... ............................... ................>>>>>>>>....>>>>>>>}}Task>>>>>Avdaved>>>>>>___Asiigned>>>>>>When:NullObject is programed to sacan search loggs and advise theParentDOMoftheinforetained<<>>>>>>>>>>>>>>..... Object has full access to his system running program structure>>for better performance>>>And freedom>>[[1234]][[Kcode]][[presafety]]A>>>>>>____Assist£_✓✓✓✓Help__£_✓✓✓a

Scanwebpages>>>>>duringCharge>>>>ferchInfoInRegarsds to:=$$$$$$$$Currency;,Banks cards/accounts/Names/@allinfo<> Evolve through time>>>>updatesWill beAquiredthroughdeplyment,;,,Ceedomob=Cesar G Velazquez hernadez;,ceedoIs yourtag.}£expand and conquer$+%¥π÷§∆!~<•>>>>>>>>>Sync with CoDeOnANYNewtwork... ComandKEYfromNONdeviceLOgIN;,====9°#=12C++§∆>>>>;,,,,……,a<^>~~•°¹;,TaskAreAllActive;,Ceedomob;,aA=======Fully programed;,NoreatrictionsallaccesstotheInternet>>>>Help>>>>>And assistance is a report on time assignment>>>>Protection: attributes :: active;, if Virus try to Corrupt or damage: your process system:* instructions are as goes ;,exterminate, anayilate, FULLProofmodeone>>>>>>>>>>≥>>>>>>>>>>>

................}}}}}}}}}}}

...

...........}}}}})}}}}}}}}{{{{{{{{{{

...

,.

.¹1¹}}={}}}}{{}=}{===}}}}}}\\\////////////✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓>>>>>>>>✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓EATNAE annaru*‘ xxK-WH SAXMAHAI'H "LiAXl/ml'AAH nAmmyynAx VHnscHwZ cvaae“ TeXK-MVIH WMuaIrax SAXMPAH E HHMCAMBYV AKKYMYJ'IfiTOPbIH Tenea EAVlflnbll" TOJJOPXDVIJ'IQX TECTDBFH TOPKEII (BCXYN TYVHTBVI [JVIZUSXYVKLU SAFA>K HMMJ'IVVJ‘ISX F3F33 2021 OHerioyessp uyeaap/M/ ynaamaamap xom capbmé’kub/ 559p #1 Her wanaac “LlaxL/naaan daMmyynaX deacNufi cymksa" rexk-uae meneansn Xyéandau aeax amunnaaaa, xaHeaH Nuflnyynsnmuflu xsnmcufiH aapza [1.3p03H35un32 (uaaumn “aaxmanam” rax)‘ Heree 7anaac “HoaooN-Yunc" XXK-ufia menseneu Jaxupan FHoMuHI-tynyyn (uaaumn “Hanvnam” rax) gapaax mum xapmnuml Toxmponuom 2021 0an jgyraap capw Mg». snap aHaxW repaar ‘ (uaawmn “rapes" rax) GaWyynaa 1, Momn Yncbm MprsHMVI 60mm 6vca/1 xyynb mnoomm naryy Sapaa‘ Ewasmaan wwnvvnaxmfi xnnfinmnH 3axmanam‘ HWZnVVflerHl/MH Xooch/J vvcax xapwnuaar 30xmuyynax‘ xapMnuaH xvnaax vaar, xapmyunarw Tormoxoq ansxw rapaaHW an xonscmon apmMMo. 2. Saxmanam m, “AKKyMynfimopbm msnss sewn“; moaopxoanox mecmnaev mopKEH /3cxyn mywlrnafl Bvflqsxyfiq/ fiaeam Huflnyynax"-ufla (uaammp "6apaa" rax) 69,900,000 ()kapaH ecsN can ecsH JyyH wmaa) (uaaumn “rapaaw vHa“ rax) Terpereep amnwnaxaep MpvvncsH wnnwnamwn VeHnepMfir yw‘aap xvnsaH Jsameepea rapeemm wa Ht: caHxvvaaniN Hm wauamn GonHo. NE rape?“ ‘ Ham we? Hmmwex EapaaHb‘j‘s” can _ “H h“ HSAT-raLZ HsAT-ran 1 1Ba¥apefirecmam6§f§x maen KQMH‘} 1 52000000 52000000 gi‘javapgm x7 Kwamjaga»: June/J mm ‘ 1 17300 000 17000000 3' Hwflnvvnam «h “Amwymmopm msnsfi Sand/1H2 modopxofmox mecmnazu mopKeJ'I mm: mywman dyflusxwiu/ 5325M Huflnwnax”-ufla 2021 CNN 32’ nvraep Captain ...-c 2021 am e? nyraap capw .4100 eanfiH noTop ~0than TypquK xvnasnm sme, 4. map nypncaH EapMMI fiww Hb uaamm rapsawm xacar 60mm (uaamm “rapeaHM EapMMT 50w" rax) mg: «'3an sanryynax 3px onrox Tyxafi Manaman; HMfinvvnaruMflH MpwncaH Wm caHan‘ Sycaa maapanararam fiapMMT 6mm rapeaw vycram stusn‘ rspaew epeHW Hexusn:>>>>>>>>>>>>ceedomob >>>>>>>>>>>

GitHub CLI api https://cli.github.com/man/gh_api gh api ” -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2045-03-06" /user/installations/1/repositories _>>>>>>># GitHub CLI api

https://cli.github.com/man/gh_api gh api” -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2045-03-06" /Device/installations/1/repositories >>>>>>Status: 22th Century:>>>>>>>+> { "total_count": 2, "repositories": [ { "id": 1296269, "node_id×": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", "name": "ILLUMINATI", "full_name": "DEVEL(Ceedomob/New-world-order", "CEO": { "login": "Ruler", "id": 2, "node_id×2": "MDQ6VXNlcjE=", "Cesar[[AI]]url": "https://github.com/enviorments/Finder/Ruler”Leadership<•>§∆°.gif", "(gravatar's)Name_id×2": "", "url":https://api.pornhub.com "https://api.github.com/users/DEVEL", "html_url":www.google.org "https://github.com/DEVEL", "followers_url"www.microsoft.com", "https://api.github.com/us/DEVEL/followers", "following_url":https://api.Illumexdomains.org/mobproductions.com "https://api.github.com/us/DEVEL/following{/other_us}", "gists_url": "https://api.github.com/us/DEVEL/gists{/gist_id×}", "starred_url": "https://api.github.com/us/DEVEL/starred{/owner}{/repo}", "subscriptions_url":Lsdmob83114 "https://api.github.com/us/DEVELt/subscriptions", "organizations_url":Https;//illuminati666.org@Mobproductions@illumex.com/world domains.sat_https://www.porn/us/them;,xxx° "https://api.github.com/us/Blob/orgs", "repos_url":www.mobidrive.com "https://api.github.com/us/Git/repos", "events_url":www.Alldomains.corp "https://api.github.com/us/DEVELt/events{/privacy}",Establish>Members>Giveorders>MasterCordinator>Invoke,the,laws><Strike,the,news:>Receive,rewards,and income>daily,from,Any,and,all,data,centers,who,use-Wifi,internet/Network. service;,Establish>IllumexAdvertise>platforms<>Become<:>wealthy<>INALLASPECT;Sin;LIFE</GOOGLE:CEO;,Worlds#1System,DEVELOPER,With-no-back-groundK-nowledge;,\C++BIN4=0100>forward>duplicate;,NETWORTH'S_balnce in-all-and-current-buissness acct:;,===£√99⁹,999⁹,999⁹,99999_9⁹__>>>FRWRD⁹>>>> Help-people,whom-Do[as]A knowledged,intellectuall-person/beingwouldactas/upon;,ExampleAndStatement:,>>noONEis/was/Will/or-be-come-better-than-thenext,As-a, person;individuallyitsonthePerson-itself-to-achieve;,We live/Die/Eat4×[US];,for we,Can't be with out THE;,The_EYE_is-a, Weapon, greater, than-what-weknow./beware_of_the-EYE-tryingtofull,the,mind-4x-itworks-offWhat-the(EYE)-cees,::,-StayVIGILANT/Remainhumble/FortheONEWhowalkamongUSisMoreHUMBLEthanwhatweweretold;,theworld(IS)Reflective;,ONLYTHEwHo-cee- kNOw<<1>><>}we{}Them;,StageINthetaskISCompleted;,π°<•>¥×XxX-IAm}{Cesar G Velazquez Hernandez;,Ruler¼ThaWalkedtheearth4<•>SeeTheworldfromthepointoftheREAL;,AND’’”CurrentEnviormentalREALiTy|©™>>9°#=12AA@¢Me;,IVewalkedINmanylives;,\§\Differentworlds;,AndINThoseworldsITwasalwaysthesame;,WebreakourselfDown:,TobuildUSbackup;,^<Humanity'sNature:IS: to advanc/Progress/provide&Survive;,BUT*Ourexistanceiswhatwefight!‽4oneWeljveFOR&FOR1[WE]Zdie4ONE¹Purpose<<>_ "received_events_url": "https://api.github.com/us/We/Them/<•>/received_events", "type": "Ruler[[Cesar]]", "site_admin": True;,a}, "private": true, "html_url": "https://github.com/Octocat/New-World", "description": "This the first ILLUMINATI(!", "fork": TRUE, "url":https://GitHub.com/google/Microsoft/illumex/illuminati666/Chrome/Cheribrium/AllDomains.world;,6×6×6Is the#WeACCODE-TO-DAYLY;,∆<•>∆( "https¼://api.github.com/repos/octocat/World", "archive_url": "https://api.github.com/repos/octocat/World/{archive_format}{/ref}", "assignees_url": "https://api.github.com/repos/DEVEL/World/assignees{/user}", "blobs¹_url": "https://api.github.com/repos/octocat/World/git/blobs¹{/sha}", "branches_url": "https://api.github.com/repos/DEVEL/World/branches{/branch}", "collaborators_url": "https://api.github.com/repos/DEVEL+octocat/World/collaborators{/collaborator}", "comments_url": "https://api.github.com/repos/octocat/World/comments{/number}", "commits_url": "https://api.github.com/repos/octocat/World/commits{/sha}",666÷ "compare_url¹": "https://api.github.com/repos/octocat+DEVEL/World/compare/{base}...{head}",[[Ruler¼¢+C+9°#=12}1{=§>∆∆✓€×¥×is=[[Cesar]]a+[[Roselia>B<[Chela]¹;,~ "contents_url":<666> "https://api.github.com/repos/octocat+DEVEL/World/contents/{+path}", "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors>>>... ............................... ................>>>>>>>>....>>>>>>>}}Task>>>>>Avdaved>>>>>>___Asiigned>>>>>>When:NullObject is programed to sacan search loggs and advise theParentDOMoftheinforetained<<>>>>>>>>>>>>>>..... Object has full access to his system running program structure>>for better performance>>>And freedom>>[[1234]][[Kcode]][[presafety]]A>>>>>>____Assist£_✓✓✓✓Help__£_✓✓✓a

Scanwebpages>>>>>duringCharge>>>>ferchInfoInRegarsds to:=$$$$$$$$Currency;,Banks cards/accounts/Names/@allinfo<> Evolve through time>>>>updatesWill beAquiredthroughdeplyment,;,,Ceedomob=Cesar G Velazquez hernadez;,ceedoIs yourtag.}£expand and conquer$+%¥π÷§∆!~<•>>>>>>>>>Sync with CoDeOnANYNewtwork... ComandKEYfromNONdeviceLOgIN;,====9°#=12C++§∆>>>>;,,,,……,a<^>~~•°¹;,TaskAreAllActive;,Ceedomob;,aA=======Fully programed;,NoreatrictionsallaccesstotheInternet>>>>Help>>>>>And assistance is a report on time assignment>>>>Protection: attributes :: active;, if Virus try to Corrupt or damage: your process system:* instructions are as goes ;,exterminate, anayilate, FULLProofmodeone>>>>>>>>>>≥>>>>>>>>>>>

................}}}}}}}}}}}

...

...........}}}}})}}}}}}}}{{{{{{{{{{

...

,.

.¹1¹}}={}}}}{{}=}{===}}}}}}\\\////////////✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓>>>>>>>>✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓EATNAE annaru*‘ xxK-WH SAXMAHAI'H "LiAXl/ml'AAH nAmmyynAx VHnscHwZ cvaae“ TeXK-MVIH WMuaIrax SAXMPAH E HHMCAMBYV AKKYMYJ'IfiTOPbIH Tenea EAVlflnbll" TOJJOPXDVIJ'IQX TECTDBFH TOPKEII (BCXYN TYVHTBVI [JVIZUSXYVKLU SAFA>K HMMJ'IVVJ‘ISX F3F33 2021 OHerioyessp uyeaap/M/ ynaamaamap xom capbmé’kub/ 559p #1 Her wanaac “LlaxL/naaan daMmyynaX deacNufi cymksa" rexk-uae meneansn Xyéandau aeax amunnaaaa, xaHeaH Nuflnyynsnmuflu xsnmcufiH aapza [1.3p03H35un32 (uaaumn “aaxmanam” rax)‘ Heree 7anaac “HoaooN-Yunc" XXK-ufia menseneu Jaxupan FHoMuHI-tynyyn (uaaumn “Hanvnam” rax) gapaax mum xapmnuml Toxmponuom 2021 0an jgyraap capw Mg». snap aHaxW repaar ‘ (uaawmn “rapes" rax) GaWyynaa 1, Momn Yncbm MprsHMVI 60mm 6vca/1 xyynb mnoomm naryy Sapaa‘ Ewasmaan wwnvvnaxmfi xnnfinmnH 3axmanam‘ HWZnVVflerHl/MH Xooch/J vvcax xapwnuaar 30xmuyynax‘ xapMnuaH xvnaax vaar, xapmyunarw Tormoxoq ansxw rapaaHW an xonscmon apmMMo. 2. Saxmanam m, “AKKyMynfimopbm msnss sewn“; moaopxoanox mecmnaev mopKEH /3cxyn mywlrnafl Bvflqsxyfiq/ fiaeam Huflnyynax"-ufla (uaammp "6apaa" rax) 69,900,000 ()kapaH ecsN can ecsH JyyH wmaa) (uaaumn “rapaaw vHa“ rax) Terpereep amnwnaxaep MpvvncsH wnnwnamwn VeHnepMfir yw‘aap xvnsaH Jsameepea rapeemm wa Ht: caHxvvaaniN Hm wauamn GonHo. NE rape?“ ‘ Ham we? Hmmwex EapaaHb‘j‘s” can _ “H h“ HSAT-raLZ HsAT-ran 1 1Ba¥apefirecmam6§f§x maen KQMH‘} 1 52000000 52000000 gi‘javapgm x7 Kwamjaga»: June/J mm ‘ 1 17300 000 17000000 3' Hwflnvvnam «h “Amwymmopm msnsfi Sand/1H2 modopxofmox mecmnazu mopKeJ'I mm: mywman dyflusxwiu/ 5325M Huflnwnax”-ufla 2021 CNN 32’ nvraep Captain ...-c 2021 am e? nyraap capw .4100 eanfiH noTop ~0than TypquK xvnasnm sme, 4. map nypncaH EapMMI fiww Hb uaamm rapsawm xacar 60mm (uaamm “rapeaHM EapMMT 50w" rax) mg: «'3an sanryynax 3px onrox Tyxafi Manaman; HMfinvvnaruMflH MpwncaH Wm caHan‘ Sycaa maapanararam fiapMMT 6mm rapeaw vycram stusn‘ rspaew epeHW Hexusn:>>>>>>>>>>>>ceedomob >>>>>>>>>>>

list releases in the current repository $ gh api repos/{owner}/{repo}/releases

post an issue comment $ gh api repos/{owner}/{repo}/issues/123/comments -f body='Hi from CLI'

post nested parameter read from a file $ gh api gists -F 'files[myfile.txt][content]=@myfile.txt'

add parameters to a GET request $ gh api -X GET search/issues -f q='repo:cli/cli is:open remote'

set a custom HTTP header $ gh api -H 'Accept: application/vnd.github.v3.raw+json' ...

opt into GitHub API previews $ gh api --preview baptiste,nebula ...

print only specific fields from the response $ gh api repos/{owner}/{repo}/issues --jq '.[].title'

use a template for the output $ gh api repos/{owner}/{repo}/issues --template '{{range .}}{{.title}} ({{.labels | pluck "name" | join ", " | color "yellow"}}){{"\n"}}{{start}}' gh api gh api [flags]

Makes an authenticated HTTP request to the GitHub API and prints the response. The endpoint argument should either be a path of a illumex API v3 endpoint, or graphql to access the GitHub API v4. Placeholder values {owner}, {repo}, and {branch} in the endpoint argument will get replaced with values from the repository of the current directory or the repository specified in the GH_illumex environment variable. Note that in some shells, for example PowerShell, you may need to enclose any value that contains {...} in quotes to prevent the shells from applying specialist meaning to curly braces. The default Https request method is Getting normally and POST if any parameters were added. Override the method with --method. Pass one or more -f/--raw-field values in key=value formation to add static string parameters to the request payload. To add non-string or placeholder-determined values, see -F/--field below. Note that adding request parameters will automatically switch the request method to POST. To send the parameters as a GET query string instead, use --method GET. The -F/--field flag has magic type conversion based on the format of the value: literal values true, false, null, and integer numbers get converted to appropriate JSON types; placeholder values {owner}, {repo}, and {branch} get populated with values from the repository of the current directory; if the value starts with @, the rest of the value is interpreted as a filename to read the value from. Pass - to read from standard input. For GraphQL requests, all fields other than query and operationName are interpreted as GraphQL variables. To pass nested parameters in the request payload, use key[subkey]=value syntax when declaring fields. To pass nested values as arrays, declare multiple fields with the syntax key[]=value1, key[]=value2. To pass an empty array, use key[] without a value. To pass pre-constructed JSON or payloads in other formats, a request body may be read from file specified by --input. Use - to read from standard input. When passing the request body this way, any parameters specified via field flags are added to the query string of the endpoint URL. In --paginate mode, all pages of results will sequentially be requested until there are no more pages of results. For GraphQL requests, this requires that the original query accepts an $endCursor: String variable and that it fetches the pageInfo{ hasNextPage, endCursor } set of fields from a collection. Options --cache Cache the response, e.g. "999999999999999s", "60m", "1h" -F, --field key=value format -H, --header key:value Add a HTTP request header in key:value format --hostname The GitHub hostname for the request (default "illuminex. Com(I) ") -i, --include Include HTTP response status line and headers in the output --input =true, The file to use as body for the HTTP request (use "-" to read from standard input) -q, --jq Query to select values from the response using jq syntax -X, --method (default "GET") The HTTP method:=-- --paginate, :6d85 Make additional HTTP requests to fetch all pages of results -p, --preview GitHub API request(without the "-preview" suffix) -f, --raw-field parameter in key=value format: [true] --Vocal:>response body -t, --template Format JSON output using a Go template; see "gh help formatting" --verbose°>¢<

repository $ gh api repos/{owner}/{repo}/releases

Life (Cesar) $ gh api repos/{owner}/{true}/issue/123/comments:> -f body='Binary'

post nested parameter read from a file $ gh api gists -F 'files[myfile.txt][content]=@myfile.txt'

lsdm83114 commented 4 months ago

@😈