Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/test_release_publisher.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "Test Release Publisher"

on:
pull_request:
branches:
- main

jobs:
test_release_publisher:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

# Simulate the `fetch_release.py` script outputs by directly setting environment variables
- name: Mock fetch-release outputs
# TODO Parametrize all these and check results
#run: |
#echo "MICROMAMBA_NEW_VERSION=true" >> $GITHUB_ENV
#echo "MICROMAMBA_VERSION=1.1.0" >> $GITHUB_ENV
#echo "MICROMAMBA_NEW_PRERELEASE=false" >> $GITHUB_ENV
#echo "MICROMAMBA_LATEST=false" >> $GITHUB_ENV

#- name: Fake GitHub release
#uses: softprops/action-gh-release@v2.2.0
#if: env.MICROMAMBA_NEW_VERSION == 'true'
#with:
#name: Fake release
## TODO use a PAT with write rights instead?
#token: ${{ secrets.GITHUB_TOKEN }}
## Set 'draft' to true for testing
#draft: true
#prerelease: ${{ env.MICROMAMBA_NEW_PRERELEASE == 'true' }}
#make_latest: ${{ env.MICROMAMBA_LATEST }}
#body: |
#Fake release for micromamba
#tag_name: ${{ env.MICROMAMBA_VERSION }}
#files: |
#releases/*
## TODO cleanup/remove the draft releases (once/twice a week?)