why github actions gotta be different
This commit is contained in:
parent
bbec1f1546
commit
462fcbf614
2 changed files with 95 additions and 94 deletions
4
.github/workflows/build-macos.yml
vendored
4
.github/workflows/build-macos.yml
vendored
|
@ -51,9 +51,7 @@ jobs:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- name: Change Version
|
- name: Change Version
|
||||||
run: |
|
run: sudo chmod +x resources/version.sh && ./resources/version.sh || true
|
||||||
sudo chmod +x resources/version.sh && ./resources/version.sh || true
|
|
||||||
git remote show origin
|
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
# - name: Initialize CodeQL
|
# - name: Initialize CodeQL
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# DEBUGGING
|
# 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)
|
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
|
echo $LATEST_SHA
|
||||||
COMMITSINCESTABLE=$(git rev-list $LATEST_SHA..HEAD --count)
|
COMMITSINCESTABLE=$(git rev-list $LATEST_SHA..HEAD --count)
|
||||||
|
@ -8,7 +12,6 @@ echo $COMMITSINCESTABLE
|
||||||
CURRENT_VERSION=$(node -p -e "require('./package.json').version")
|
CURRENT_VERSION=$(node -p -e "require('./package.json').version")
|
||||||
echo $CURRENT_VERSION
|
echo $CURRENT_VERSION
|
||||||
|
|
||||||
git log $LATEST_SHA
|
|
||||||
|
|
||||||
#############################################################################################
|
#############################################################################################
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue