Fix snap stable builds

This commit is contained in:
Fallenbagel
2023-01-05 02:26:23 +05:00
parent d18e3d185f
commit 6f73dbc36a

View File

@@ -51,15 +51,15 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Switch to master branch
run: git checkout master
- name: Switch to main branch
run: git checkout main
- name: Pull latest changes
run: git pull
- name: Prepare
id: prepare
run: |
git fetch --prune --tags
if [[ $GITHUB_REF == refs/tags/* || $GITHUB_REF == refs/heads/master ]]; then
if [[ $GITHUB_REF == refs/tags/* || $GITHUB_REF == refs/heads/main ]]; then
echo ::set-output name=RELEASE::stable
else
echo ::set-output name=RELEASE::edge