You've already forked setup-python
							
							
				mirror of
				https://github.com/actions/setup-python.git
				synced 2025-10-31 23:26:24 +07:00 
			
		
		
		
	feature: fallback to pre-release when no stable version is found (#414)
This allows to specify version like `3.11` or `pypy3.10` in workflows before those versions are released. This lessen the burden for users of `setup-python` by not having to modify their workflow twice: once when a pre-release is available (e.g. `3.11-dev`) and once when the first stable release is published (e.g. `3.11`)
This commit is contained in:
		| @ -1,4 +1,29 @@ | ||||
| [ | ||||
|     { | ||||
|       "version": "1.2.4-beta.2", | ||||
|       "stable": false, | ||||
|       "release_url": "https://github.com/actions/sometool/releases/tag/1.2.4-beta.2-20200402.5", | ||||
|       "files": [ | ||||
|         { | ||||
|           "filename": "sometool-1.2.4-linux-x64.tar.gz", | ||||
|           "arch": "x64", | ||||
|           "platform": "linux", | ||||
|           "download_url": "https://github.com/actions/sometool/releases/tag/1.2.4-beta.2-20200402.5/sometool-1.2.4-linux-x64.tar.gz" | ||||
|         }, | ||||
|         { | ||||
|           "filename": "sometool-1.2.4-darwin-x64.tar.gz", | ||||
|           "arch": "x64", | ||||
|           "platform": "darwin", | ||||
|           "download_url": "https://github.com/actions/sometool/releases/tag/1.2.4-beta.2-20200402.5/sometool-1.2.4-darwin-x64.tar.gz" | ||||
|         }, | ||||
|         { | ||||
|           "filename": "sometool-1.2.4-win32-x64.tar.gz", | ||||
|           "arch": "x64", | ||||
|           "platform": "win32", | ||||
|           "download_url": "https://github.com/actions/sometool/releases/tag/1.2.4-beta.2-20200402.5/sometool-1.2.4-win32-x64.tar.gz" | ||||
|         } | ||||
|       ] | ||||
|     }, | ||||
|     { | ||||
|       "version": "1.2.3", | ||||
|       "stable": true, | ||||
| @ -25,28 +50,28 @@ | ||||
|       ] | ||||
|     }, | ||||
|     { | ||||
|       "version": "1.2.3-beta.2", | ||||
|       "version": "1.1.0-beta.2", | ||||
|       "stable": false, | ||||
|       "release_url": "https://github.com/actions/sometool/releases/tag/1.2.3-beta.2-20200402.5", | ||||
|       "release_url": "https://github.com/actions/sometool/releases/tag/1.1.0-beta.2-20200402.5", | ||||
|       "files": [ | ||||
|         { | ||||
|           "filename": "sometool-1.2.3-linux-x64.tar.gz", | ||||
|           "filename": "sometool-1.1.0-linux-x64.tar.gz", | ||||
|           "arch": "x64", | ||||
|           "platform": "linux", | ||||
|           "download_url": "https://github.com/actions/sometool/releases/tag/1.2.3-beta.2-20200402.5/sometool-1.2.3-linux-x64.tar.gz" | ||||
|           "download_url": "https://github.com/actions/sometool/releases/tag/1.1.0-beta.2-20200402.5/sometool-1.1.0-linux-x64.tar.gz" | ||||
|         }, | ||||
|         { | ||||
|           "filename": "sometool-1.2.3-darwin-x64.tar.gz", | ||||
|           "filename": "sometool-1.1.0-darwin-x64.tar.gz", | ||||
|           "arch": "x64", | ||||
|           "platform": "darwin", | ||||
|           "download_url": "https://github.com/actions/sometool/releases/tag/1.2.3-20200402.5/sometool-1.2.3-darwin-x64.tar.gz" | ||||
|           "download_url": "https://github.com/actions/sometool/releases/tag/1.1.0-beta.2-20200402.5/sometool-1.1.0-darwin-x64.tar.gz" | ||||
|         }, | ||||
|         { | ||||
|           "filename": "sometool-1.2.3-win32-x64.tar.gz", | ||||
|           "filename": "sometool-1.1.0-win32-x64.tar.gz", | ||||
|           "arch": "x64", | ||||
|           "platform": "win32", | ||||
|           "download_url": "https://github.com/actions/sometool/releases/tag/1.2.3-20200402.5/sometool-1.2.3-win32-x64.tar.gz" | ||||
|           "download_url": "https://github.com/actions/sometool/releases/tag/1.1.0-beta.2-20200402.5/sometool-1.1.0-win32-x64.tar.gz" | ||||
|         } | ||||
|       ] | ||||
|     } | ||||
| ] | ||||
| ] | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Matthieu Darbois
					Matthieu Darbois