Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to protect your self from releasing a release marked as Pre-Release? #105

Closed
oppknox opened this issue Sep 18, 2021 · 3 comments

Comments

@oppknox
Copy link

oppknox commented Sep 18, 2021

I thought GitHub would do this for me, but apparently that isnt the case. Would you be able to add a flag to protect against it?

- name: Download latest Blazor artifact
  if: ${{ null == github.event.inputs.runnumber  }}   
  uses: dawidd6/action-download-artifact@v2
  with:
    workflow: ${{ env.Release_Action_Workflow }} 
    workflow_conclusion: success
    name: Test.Blazor.Wasm
    path: ./web
@dawidd6
Copy link
Owner

dawidd6 commented Sep 18, 2021

I don't understand the issue

@oppknox
Copy link
Author

oppknox commented Sep 20, 2021

If I create a main release, then create another release in a different branch and check the box "Pre-Release", but using the script above to deploy the latest successful release it'll grab the Pre-Release in a branch that I didnt intend to release. I'm looking for either a safety to ensure I can only deploy the latest Main branch or a safety to ensure I never deploy anything marked as Pre-Release

image

@oppknox
Copy link
Author

oppknox commented Sep 20, 2021

Well actually I just looked again... looks like I can lock a branch. I thought I tried this before and ran into an issue. I'll try it again, if that works a block on pre-release would be less interesting.

branch: master
# Optional, defaults to all types

@dawidd6 dawidd6 closed this as completed Jan 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants