Reset the CI pipeline step conditions (don't force everything to run every time anymore)

This commit is contained in:
Alessio 2024-08-19 16:39:22 -07:00
parent 8b54f0acab
commit adbab97ca1
3 changed files with 9 additions and 10 deletions

View File

@ -21,16 +21,15 @@ pipeline:
# - offline_twatter_passwd # - offline_twatter_passwd
- offline_twatter_session_file - offline_twatter_session_file
environment: environment:
- SESSION_FILE_PATH=/tmp/Offline_Twatter.session # Temp location, to be imported by the integration test - SESSION_FILE_PATH=/tmp/Offline_Twatter.session # Temp location, to be imported by the integration test
# when: # At least one when: # At least one
# - path: - path:
# - pkg/scraper/** - pkg/scraper/**
# - cmd/** - cmd/**
# - branch: v*.*.* - branch: v*.*.*
commands: commands:
- cd cmd - cd cmd
- mkdir -p $(dirname $SESSION_FILE_PATH) # Make the temp directory... - mkdir -p $(dirname $SESSION_FILE_PATH) # Make the temp directory...
- ls /tmp
- echo "$OFFLINE_TWATTER_SESSION_FILE" > $SESSION_FILE_PATH # ...and write the session file to temp location - echo "$OFFLINE_TWATTER_SESSION_FILE" > $SESSION_FILE_PATH # ...and write the session file to temp location
- ./tests.sh - ./tests.sh
@ -46,8 +45,8 @@ pipeline:
version_bump_test: version_bump_test:
image: offline-twitter/go image: offline-twitter/go
# when: when:
# branch: v*.*.* branch: v*.*.*
secrets: secrets:
# - offline_twatter_passwd # - offline_twatter_passwd
- offline_twatter_session_file - offline_twatter_session_file

View File

@ -101,6 +101,7 @@ func (app *Application) ServeHTTP(w http.ResponseWriter, r *http.Request) {
// Serve directly from the embedded files // Serve directly from the embedded files
http.FileServer(http.FS(embedded_files)).ServeHTTP(w, r) http.FileServer(http.FS(embedded_files)).ServeHTTP(w, r)
} else { } else {
// Serve from disk
http.StripPrefix("/static", http.FileServer(http.Dir(get_filepath("static")))).ServeHTTP(w, r) http.StripPrefix("/static", http.FileServer(http.Dir(get_filepath("static")))).ServeHTTP(w, r)
} }
case "tweet": case "tweet":

View File

@ -387,7 +387,6 @@ func (p Profile) fill_dm_contents(trove *TweetTrove) {
panic(err) panic(err)
} }
for _, vid := range videos { for _, vid := range videos {
println("asdfasfasdf")
msg := trove.Messages[vid.DMMessageID] msg := trove.Messages[vid.DMMessageID]
msg.Videos = []Video{vid} msg.Videos = []Video{vid}
trove.Messages[msg.ID] = msg trove.Messages[msg.ID] = msg