-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3ba121f
commit 49636f1
Showing
3 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: CI | ||
on: [push] | ||
jobs: | ||
test-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | ||
with: | ||
ref: release-candidate | ||
|
||
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4 | ||
with: | ||
node-version: "^20" | ||
cache: yarn | ||
cache-dependency-path: yarn.lock | ||
|
||
- name: Setup environment | ||
run: sudo apt-get install libelf1 | ||
|
||
- name: Set Cat | ||
run: echo "MEOW=meowzah" >> "$GITHUB_ENV" | ||
|
||
- name: Log MEOW | ||
run: echo hello MEOW is $MEOW | ||
|
||
- name: Set VERSION | ||
run: echo "VERSION=$(./scripts/get_version.sh)" >> "$GITHUB_ENV" | ||
|
||
- name: Log version | ||
run: echo hello version is $VERSION | ||
|
||
- run: grep -E 'VERSION = .*([0-9]+)\.[0-9]+\.[0-9]+.*' main/settings.py | ||
- run: grep -E 'VERSION\s+= .*([0-9]+)\.[0-9]+\.[0-9]+.*' main/settings.py | ||
- run: grep -Eo -m 1 'VERSION\s+= .*([0-9]+)\.[0-9]+\.[0-9]+.*' main/settings.py | ||
|
||
- run: ./scripts/get_version.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Get VERSION from settings.py | ||
grep -Eo -m 1 'VERSION\s+= .*(\d+)\.\d+\.\d+.*' main/settings.py | | ||
grep -Eo -m 1 'VERSION\s+= .*([0-9]+)\.[0-9]+\.[0-9]+.*' main/settings.py | | ||
head -1 | | ||
grep -Eo "\d+\.\d+\.\d+" | ||
grep -Eo "[0-9]+\.[0-9]+\.[0-9]+" |