Skip to content

Commit

Permalink
add version stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
KMicha committed Dec 17, 2024
1 parent b37d381 commit f465064
Show file tree
Hide file tree
Showing 15 changed files with 649 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/version2016.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This is a basic workflow to help you get started with Actions

name: versions:2016.0

on:
push:
branches:
- 'main'
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string 1:00 weekly,Wednesday,1:00 #m h d/m m d/w
- cron: '37 2 * * 3'

jobs:
versions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set ownership
run: |
# this is to fix GIT not liking owner of the checkout dir
chown -R $(id -u):$(id -g) $PWD
- name: run docker in docker
run: (docker container run --volume ./cre/versions:/cre/versions credocker/crephpdev:2016.0 /cre/update-versions.sh 2016)
- name: Submit changes
uses: EndBug/add-and-commit@v9
with:
# pull: '--rebase --autostash ...'
add: 'cre/versions/versions_2016.txt cre/versions/requirements_2016.txt'
tag_push: '--force'
47 changes: 47 additions & 0 deletions .github/workflows/version2018.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# This is a basic workflow to help you get started with Actions

name: versions:2018.0

on:
push:
branches:
- 'main'
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string 1:00 weekly,Thursday,1:00 #m h d/m m d/w
- cron: '37 2 * * 4'

jobs:
versions:
runs-on: ubuntu-latest
container:
image: credocker/crephpdev:2018.0
steps:
- uses: actions/checkout@v4
- name: Set ownership
run: |
# this is to fix GIT not liking owner of the checkout dir
chown -R $(id -u):$(id -g) $PWD
- name: cat version.txt
run: (cat /cre/versions.txt)
- name: cp version.txt
# run: (cp /cre/versions.txt cre/versions/versions_2018.txt)
run: (cut -f2,3 /cre/versions.txt > cre/versions/versions_2018.txt)
#
- name: set current year
run: (echo -n "CURRENT_YEAR=$(date +'%Y.0')" >> $GITHUB_ENV)
- name: set current version
run: (echo -n "CURRENT_VERSION=$CRE_VERSION" >> $GITHUB_ENV)
- name: cat requirements.txt
run: (cat /cre/requirements.txt.orig)
- name: cp requirements.txt
if: env.CURRENT_VERSION == env.CURRENT_YEAR
run: (cp /cre/requirements.txt.orig cre/versions/requirements_2018.txt)
#
- name: Submit changes
uses: EndBug/add-and-commit@v9
with:
# pull: '--rebase --autostash ...'
add: 'cre/versions/versions_2018.txt cre/versions/requirements_2018.txt'
tag_push: '--force'

47 changes: 47 additions & 0 deletions .github/workflows/version2020.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# This is a basic workflow to help you get started with Actions

name: versions:2020.0

on:
push:
branches:
- 'main'
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string 1:00 weekly,Friday,1:00 #m h d/m m d/w
- cron: '37 2 * * 5'

jobs:
versions:
runs-on: ubuntu-latest
container:
image: credocker/crephpdev:2020.0
steps:
- uses: actions/checkout@v3
- name: Set ownership
run: |
# this is to fix GIT not liking owner of the checkout dir
chown -R $(id -u):$(id -g) $PWD
- name: cat version.txt
run: (cat /cre/versions.txt)
- name: cp version.txt
# run: (cp /cre/versions.txt cre/versions/versions_2020.txt)
run: (cut -f2,3 /cre/versions.txt > cre/versions/versions_2020.txt)
#
- name: set current year
run: (echo -n "CURRENT_YEAR=$(date +'%Y.0')" >> $GITHUB_ENV)
- name: set current version
run: (echo -n "CURRENT_VERSION=$CRE_VERSION" >> $GITHUB_ENV)
- name: cat requirements.txt
run: (cat /cre/requirements.txt.orig)
- name: cp requirements.txt
if: env.CURRENT_VERSION == env.CURRENT_YEAR
run: (cp /cre/requirements.txt.orig cre/versions/requirements_2020.txt)
#
- name: Submit changes
uses: EndBug/add-and-commit@v9
with:
# pull: '--rebase --autostash ...'
add: 'cre/versions/versions_2020.txt cre/versions/requirements_2020.txt'
tag_push: '--force'

46 changes: 46 additions & 0 deletions .github/workflows/version2022.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# This is a basic workflow to help you get started with Actions

name: versions:2022.0

on:
push:
branches:
- 'main'
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string 1:00 weekly,Saturday,1:00 #m h d/m m d/w
- cron: '37 2 * * 6'

jobs:
versions:
runs-on: ubuntu-latest
container:
image: credocker/crephpdev:2022.0
steps:
- uses: actions/checkout@v3
- name: Set ownership
run: |
# this is to fix GIT not liking owner of the checkout dir
chown -R $(id -u):$(id -g) $PWD
- name: cat version.txt
run: (cat /cre/versions.txt)
- name: cp version.txt
# run: (cp /cre/versions.txt cre/versions/versions_2022.txt)
run: (cut -f2,3 /cre/versions.txt > cre/versions/versions_2022.txt)
#
- name: set current year
run: (echo -n "CURRENT_YEAR=$(date +'%Y.0')" >> $GITHUB_ENV)
- name: set current version
run: (echo -n "CURRENT_VERSION=$CRE_VERSION" >> $GITHUB_ENV)
- name: cat requirements.txt
run: (cat /cre/requirements.txt.orig)
- name: cp requirements.txt
if: env.CURRENT_VERSION == env.CURRENT_YEAR
run: (cp /cre/requirements.txt.orig cre/versions/requirements_2022.txt)
#
- name: Submit changes
uses: EndBug/add-and-commit@v9
with:
# pull: '--rebase --autostash ...'
add: 'cre/versions/versions_2022.txt cre/versions/requirements_2022.txt'
tag_push: '--force'
46 changes: 46 additions & 0 deletions .github/workflows/version2024.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# This is a basic workflow to help you get started with Actions

name: versions:2024.0

on:
push:
branches:
- 'main'
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string 1:00 weekly,Sunday,1:00 #m h d/m m d/w
- cron: '37 2 * * 0'

jobs:
versions:
runs-on: ubuntu-latest
container:
image: credocker/crephpdev:2024.0
steps:
- uses: actions/checkout@v3
- name: Set ownership
run: |
# this is to fix GIT not liking owner of the checkout dir
chown -R $(id -u):$(id -g) $PWD
- name: cat version.txt
run: (cat /cre/versions.txt)
- name: cp version.txt
# run: (cp /cre/versions.txt cre/versions/versions_2024.txt)
run: (cut -f2,3 /cre/versions.txt > cre/versions/versions_2024.txt)
#
- name: set current year
run: (echo -n "CURRENT_YEAR=$(date +'%Y.0')" >> $GITHUB_ENV)
- name: set current version
run: (echo -n "CURRENT_VERSION=$CRE_VERSION" >> $GITHUB_ENV)
- name: cat requirements.txt
run: (cat /cre/requirements.txt.orig)
- name: cp requirements.txt
if: env.CURRENT_VERSION == env.CURRENT_YEAR
run: (cp /cre/requirements.txt.orig cre/versions/requirements_2024.txt)
#
- name: Submit changes
uses: EndBug/add-and-commit@v9
with:
# pull: '--rebase --autostash ...'
add: 'cre/versions/versions_2024.txt cre/versions/requirements_2024.txt'
tag_push: '--force'
75 changes: 75 additions & 0 deletions cre/versions/requirements_2016.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
asttokens==2.4.1
attrs==24.2.0
backcall==0.2.0
beautifulsoup4==4.12.3
bleach==6.1.0
blinker==1.8.2
certifi==2019.11.28
chardet==3.0.4
click==8.1.7
dbus-python==1.2.16
decorator==5.1.1
defusedxml==0.7.1
distro==1.4.0
distro-info==0.23+ubuntu1.1
docopt==0.6.2
executing==2.1.0
fastjsonschema==2.20.0
Flask==3.0.3
idna==2.8
importlib_metadata==8.5.0
importlib_resources==6.4.5
ipython==8.12.3
itsdangerous==2.2.0
jedi==0.19.1
Jinja2==3.1.4
jsonschema==4.23.0
jsonschema-specifications==2023.12.1
jupyter_client==8.6.3
jupyter_core==5.7.2
jupyterlab_pygments==0.3.0
MarkupSafe==2.1.5
matplotlib-inline==0.1.7
mistune==3.0.2
nbclient==0.10.0
nbconvert==7.16.4
nbformat==5.10.4
packaging==24.1
pandocfilters==1.5.1
parso==0.8.4
pexpect==4.9.0
pickleshare==0.7.5
pika==1.3.2
pipreqs==0.5.0
pkgutil_resolve_name==1.3.10
platformdirs==4.3.3
prompt_toolkit==3.0.47
ptyprocess==0.7.0
pure_eval==0.2.3
Pygments==2.18.0
PyGObject==3.36.0
python-apt==2.0.1+ubuntu0.20.4.1
python-dateutil==2.9.0.post0
PyYAML==6.0.2
pyzmq==26.2.0
referencing==0.35.1
requests==2.22.0
requests-unixsocket==0.2.0
rpds-py==0.20.0
six==1.14.0
soupsieve==2.6
ssh-import-id==5.10
stack-data==0.6.3
tinycss2==1.3.0
tornado==6.4.1
traitlets==5.14.3
typing_extensions==4.12.2
ufw==0.36
unattended-upgrades==0.1
urllib3==1.25.8
wcwidth==0.2.13
webencodings==0.5.1
Werkzeug==3.0.4
wget==3.2
yarg==0.1.9
zipp==3.20.2
75 changes: 75 additions & 0 deletions cre/versions/requirements_2018.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
asttokens==2.4.1
attrs==24.2.0
backcall==0.2.0
beautifulsoup4==4.12.3
bleach==6.1.0
blinker==1.8.2
certifi==2019.11.28
chardet==3.0.4
click==8.1.7
dbus-python==1.2.16
decorator==5.1.1
defusedxml==0.7.1
distro==1.4.0
distro-info==0.23+ubuntu1.1
docopt==0.6.2
executing==2.1.0
fastjsonschema==2.20.0
Flask==3.0.3
idna==2.8
importlib_metadata==8.5.0
importlib_resources==6.4.5
ipython==8.12.3
itsdangerous==2.2.0
jedi==0.19.1
Jinja2==3.1.4
jsonschema==4.23.0
jsonschema-specifications==2023.12.1
jupyter_client==8.6.3
jupyter_core==5.7.2
jupyterlab_pygments==0.3.0
MarkupSafe==2.1.5
matplotlib-inline==0.1.7
mistune==3.0.2
nbclient==0.10.0
nbconvert==7.16.4
nbformat==5.10.4
packaging==24.1
pandocfilters==1.5.1
parso==0.8.4
pexpect==4.9.0
pickleshare==0.7.5
pika==1.3.2
pipreqs==0.5.0
pkgutil_resolve_name==1.3.10
platformdirs==4.3.3
prompt_toolkit==3.0.47
ptyprocess==0.7.0
pure_eval==0.2.3
Pygments==2.18.0
PyGObject==3.36.0
python-apt==2.0.1+ubuntu0.20.4.1
python-dateutil==2.9.0.post0
PyYAML==6.0.2
pyzmq==26.2.0
referencing==0.35.1
requests==2.22.0
requests-unixsocket==0.2.0
rpds-py==0.20.0
six==1.14.0
soupsieve==2.6
ssh-import-id==5.10
stack-data==0.6.3
tinycss2==1.3.0
tornado==6.4.1
traitlets==5.14.3
typing_extensions==4.12.2
ufw==0.36
unattended-upgrades==0.1
urllib3==1.25.8
wcwidth==0.2.13
webencodings==0.5.1
Werkzeug==3.0.4
wget==3.2
yarg==0.1.9
zipp==3.20.2
Loading

0 comments on commit f465064

Please sign in to comment.