Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-update components #2

Open
obbardc opened this issue Jun 17, 2018 · 3 comments
Open

Auto-update components #2

obbardc opened this issue Jun 17, 2018 · 3 comments
Labels
enhancement New feature or request

Comments

@obbardc
Copy link
Member

obbardc commented Jun 17, 2018

Maybe from a nightly cronjob?

@obbardc obbardc added the enhancement New feature or request label Jun 17, 2018
@danielhjames
Copy link
Member

A cron job sounds like a good solution, as updating should always be under user control.

@obbardc
Copy link
Member Author

obbardc commented Feb 3, 2019

some hacked up test code for the Makefile, but the if statements are read on Makefile read, not on target run.

test_commit := $(shell git status | grep -c 'Changes not staged for commit\|Changes to be committed')
test_make := $(shell git status | grep -c "Makefile")
timestamp := $(shell /bin/date "+%H:%M %d/%m/%Y")

commit:
        # check whether there is anything to commit
        ifeq ($(test_commit),0)
                $(error nothing to commit!)
        endif

        # check whether the Makefile has been modified
        ifneq ($(test_make),0)
                $(error makefile must be commited by hand!)
        endif
        echo Timestamp is $(timestamp)
        pdk commit -m "Update upstream components as of $(timestamp)"
        git push github master

@obbardc
Copy link
Member Author

obbardc commented Feb 3, 2019

as part of the automated process we should check whether the components are all dependency closed before committing.

the commands to update manually are:-

DATE=`date "+%H:%M %d/%m/%Y"`
make
pdk commit -m "Update upstream components as of $DATE"
git push github master

@obbardc obbardc self-assigned this Feb 3, 2019
@obbardc obbardc removed their assignment Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants