Skip to content

Adding date variable to commit message #26915

Discussion options

You must be logged in to vote

Hi @fredericharnois,

Glad to see you in Github Community Forum!

This is due to you lost “::” for set-output command, fixed as below:

    - name: Get yesterday's date
      id: ydate
      run: |
        echo "::set-output name=ydate::$(date -d "yesterday 22:0" +'%Y-%m-%d')"  # add :: before set-ouput

Thanks

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants