mirror of
				https://github.com/R2Northstar/Northstar
				synced 2025-11-04 10:32:29 +01:00 
			
		
		
		
	Compare commits
	
		
			6 Commits
		
	
	
		
			v1.19.0
			...
			v1.19.11-r
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					8fb1f315bb | ||
| 
						 | 
					4dccb376ec | ||
| 
						 | 
					ec0491e1e3 | ||
| 
						 | 
					cd971e5c0d | ||
| 
						 | 
					587363f257 | ||
| 
						 | 
					711676ec8a | 
							
								
								
									
										20
									
								
								.github/workflows/add-to-project.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								.github/workflows/add-to-project.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					name: add-to-project
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					on:
 | 
				
			||||||
 | 
					  issues:
 | 
				
			||||||
 | 
					    types:
 | 
				
			||||||
 | 
					      - opened
 | 
				
			||||||
 | 
					  pull_request_target:
 | 
				
			||||||
 | 
					    types:
 | 
				
			||||||
 | 
					      - opened
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  add-to-project:
 | 
				
			||||||
 | 
					    name: Add to project
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/add-to-project@v0.5.0
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          project-url: "https://github.com/orgs/R2Northstar/projects/3"
 | 
				
			||||||
 | 
					          github-token: "${{ secrets.PROJECT_BOARD_TOKEN }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
							
								
								
									
										4
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							@@ -20,6 +20,10 @@ jobs:
 | 
				
			|||||||
  build-northstar:
 | 
					  build-northstar:
 | 
				
			||||||
    runs-on: ubuntu-20.04
 | 
					    runs-on: ubuntu-20.04
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
 | 
					      - name: Wait for launcher release build to be ready
 | 
				
			||||||
 | 
					        timeout-minutes: 30 # Only wait for 30 minutes. If we take longer, something probably broke
 | 
				
			||||||
 | 
					        run:
 | 
				
			||||||
 | 
					          bash wait_dl.sh
 | 
				
			||||||
      - name: Download compiled launcher
 | 
					      - name: Download compiled launcher
 | 
				
			||||||
        run:
 | 
					        run:
 | 
				
			||||||
          wget "https://github.com/R2Northstar/NorthstarLauncher/releases/download/${{ env.NORTHSTAR_VERSION }}/northstar-launcher.zip"
 | 
					          wget "https://github.com/R2Northstar/NorthstarLauncher/releases/download/${{ env.NORTHSTAR_VERSION }}/northstar-launcher.zip"
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										17
									
								
								.github/workflows/post-to-mastodon.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								.github/workflows/post-to-mastodon.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,17 @@
 | 
				
			|||||||
 | 
					name: Post-to-Mastodon
 | 
				
			||||||
 | 
					on:
 | 
				
			||||||
 | 
					  release:
 | 
				
			||||||
 | 
					    types: [published]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  toot:
 | 
				
			||||||
 | 
					    runs-on: ubuntu-22.04
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - name: Send toot to Mastodon
 | 
				
			||||||
 | 
					        id: mastodon
 | 
				
			||||||
 | 
					        uses: cbrgm/mastodon-github-action@v1
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          message: "We just released Northstar ${{ github.event.release.tag_name }}\n\n${{ github.event.release.html_url }}"
 | 
				
			||||||
 | 
					        env:
 | 
				
			||||||
 | 
					          MASTODON_URL: ${{ secrets.MASTODON_URL }}
 | 
				
			||||||
 | 
					          MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN }}
 | 
				
			||||||
							
								
								
									
										26
									
								
								wait_for_launcher_dl.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										26
									
								
								wait_for_launcher_dl.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,26 @@
 | 
				
			|||||||
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Check if contains command line arg
 | 
				
			||||||
 | 
					if [ -z "$1" ]; then
 | 
				
			||||||
 | 
					    echo "Missing command-line argument."
 | 
				
			||||||
 | 
					    exit 1
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					url="https://github.com/R2Northstar/NorthstarLauncher/releases/tag/$1"
 | 
				
			||||||
 | 
					wait_time_seconds=60
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Loop until the response code changes
 | 
				
			||||||
 | 
					while true; do
 | 
				
			||||||
 | 
					    response=$(curl --silent --output /dev/null --write-out "%{http_code}" $url)
 | 
				
			||||||
 | 
					    if [ $response -ne 200 ]; then
 | 
				
			||||||
 | 
					        echo "Response is not 200. Retrying in $wait_time_seconds seconds."
 | 
				
			||||||
 | 
					        sleep $wait_time_seconds
 | 
				
			||||||
 | 
					    else
 | 
				
			||||||
 | 
					        echo "Site is accessible with response code $response."
 | 
				
			||||||
 | 
					        break
 | 
				
			||||||
 | 
					    fi
 | 
				
			||||||
 | 
					done
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# 10 second sleep just in case we hit some weird race condition
 | 
				
			||||||
 | 
					# where files are still being uploaded but release is done
 | 
				
			||||||
 | 
					sleep 10
 | 
				
			||||||
		Reference in New Issue
	
	Block a user