Skip to content

Commit

Permalink
Only upload publicly on main (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
arianvp committed Dec 29, 2023
1 parent 695fe93 commit bd18864
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/upload-legacy-ami.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Upload Legacy Amazon Image
permissions:
contents: read
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
schedule:
Expand Down Expand Up @@ -77,7 +80,7 @@ jobs:
# cause us to register the same snapshot as an image over and over again
# for each run.
- name: Upload AMIs to all available regions
if: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
if: github.ref == 'refs/heads/main'
run: |
image_info='${{ steps.download_ami.outputs.image_info }}'
images_bucket='${{ vars.IMAGES_BUCKET }}'
Expand Down

0 comments on commit bd18864

Please sign in to comment.