why github actions gotta be different

This commit is contained in:
Core 2022-08-01 14:52:47 +01:00
parent bbec1f1546
commit 462fcbf614
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6
2 changed files with 95 additions and 94 deletions

View file

@ -51,15 +51,13 @@ jobs:
submodules: true
- name: Change Version
run: |
sudo chmod +x resources/version.sh && ./resources/version.sh || true
git remote show origin
run: sudo chmod +x resources/version.sh && ./resources/version.sh || true
# Initializes the CodeQL tools for scanning.
# - name: Initialize CodeQL
# uses: github/codeql-action/init@v1
# with:
# languages: ${{ matrix.language }}
# - name: Initialize CodeQL
# uses: github/codeql-action/init@v1
# with:
# languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
@ -72,18 +70,18 @@ jobs:
# and modify them (or add more) to build your code if your project
# uses a compiled language
# - name : env
# run: |
# export EVS_ACCOUNT_NAME=${{ secrets.EVS_ACCOUNT_NAME}} && export EVS_PASSWD=${{ secrets.EVS_PASSWD }}
# export CSC_LINK=${{ secrets.CSC_LINK }} && export CSC_KEY_PASSWORD=${{ secrets.CSC_KEY_PASSWORD }}
# export APPLEID=${{ secrets.APPLEID }} && export APPLEIDPASS=${{ secrets.APPLEIDPASS }}
# - name : env
# run: |
# export EVS_ACCOUNT_NAME=${{ secrets.EVS_ACCOUNT_NAME}} && export EVS_PASSWD=${{ secrets.EVS_PASSWD }}
# export CSC_LINK=${{ secrets.CSC_LINK }} && export CSC_KEY_PASSWORD=${{ secrets.CSC_KEY_PASSWORD }}
# export APPLEID=${{ secrets.APPLEID }} && export APPLEIDPASS=${{ secrets.APPLEIDPASS }}
- name: Sign in to EVS
run: |
python3 -m pip install --upgrade castlabs-evs
python3 -m castlabs_evs.account refresh -A ${{ secrets.EVS_ACCOUNT_NAME }} -P ${{ secrets.EVS_PASSWD }}
- name : Build
- name: Build
env:
CSC_LINK: ${{ secrets.CSC_LINK }}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
@ -105,8 +103,8 @@ jobs:
rm -r /node_modules/leveldown/node_modules/node-gyp-build || true
yarn dist:universalNotWorking -p never
ls
# - name: Perform CodeQL Analysis
# uses: github/codeql-action/analyze@v1
# - name: Perform CodeQL Analysis
# uses: github/codeql-action/analyze@v1
- name: Add license to dmg
run: |

View file

@ -1,6 +1,10 @@
#!/bin/bash
# DEBUGGING
curl -s https://api.github.com/repos/ciderapp/Cider/branches/stable
# | grep sha | cut -d '"' -f 4 | sed 's/v//' | xargs | cut -d' ' -f1 | head -n 1
LATEST_SHA=$(curl -s https://api.github.com/repos/ciderapp/Cider/branches/stable | grep sha | cut -d '"' -f 4 | sed 's/v//' | xargs | cut -d' ' -f1 | head -n 1)
echo $LATEST_SHA
COMMITSINCESTABLE=$(git rev-list $LATEST_SHA..HEAD --count)
@ -8,7 +12,6 @@ echo $COMMITSINCESTABLE
CURRENT_VERSION=$(node -p -e "require('./package.json').version")
echo $CURRENT_VERSION
git log $LATEST_SHA
#############################################################################################