File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 36
36
git merge main
37
37
38
38
- name : Fetch
39
- run : python fetch.py
39
+ id : fetch
40
+ run : |
41
+ python fetch.py | tee fetched_thru.txt
42
+ echo "THROUGH=$(cat fetched_thru.txt)" >> "$GITHUB_ENV"
40
43
env :
41
44
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42
45
continue-on-error : true
46
49
git add all-commits/ releases/
47
50
# swallow git "nothing added to commit" error; we might have
48
51
# a merge commit which we want to push.
49
- git commit -m "add binaries" || echo "no new binaries" 1>&2
52
+ git commit -m "add binaries ${{ env.THROUGH }} " || echo "no new binaries" 1>&2
50
53
git push
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ def URL(uri):
82
82
83
83
os .rename (tmp_directory , output_directory )
84
84
print (f"successfully fetched { output_directory } " , file = sys .stderr )
85
+ latest_target = output_directory
85
86
86
87
changes += 1
87
88
@@ -102,8 +103,12 @@ def URL(uri):
102
103
with open (target_path , "wb" ) as f :
103
104
f .write (r .content )
104
105
print (f"{ filename } fetched to { target_path } " , file = sys .stderr )
106
+ latest_target = output_dir
107
+
105
108
changes += 1
106
109
107
110
if changes == 0 :
108
111
print ("No files fetched." , file = sys .stderr )
109
112
sys .exit (1 )
113
+
114
+ sys .stdout .write (f"through { latest_target } " )
You can’t perform that action at this time.
0 commit comments