-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 1.17 KB
/
version2022.yml
File metadata and controls
38 lines (35 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# 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: '33 2 * * 6'
jobs:
versions:
runs-on: ubuntu-latest
container:
image: credocker/crepostgres:2022.0
# https://github.com/actions/checkout/issues/1014
# https://github.com/actions/checkout/issues/956
options: --user root
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: Submit changes
uses: EndBug/add-and-commit@v9
with:
# pull: '--rebase --autostash ...'
add: 'cre/versions/versions_2022.txt'
tag_push: '--force'