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 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Switch to master branch - name: Switch to main branch
run: git checkout master run: git checkout main
- name: Pull latest changes - name: Pull latest changes
run: git pull run: git pull
- name: Prepare - name: Prepare
id: prepare id: prepare
run: | run: |
git fetch --prune --tags 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 echo ::set-output name=RELEASE::stable
else else
echo ::set-output name=RELEASE::edge echo ::set-output name=RELEASE::edge