Skip to content

Commit

Permalink
action test - sh fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CMIP-IPO: Automated GitHub Action committed Nov 16, 2023
1 parent af97a9a commit 267cdef
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/gen_CV.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,29 +92,30 @@ jobs:
echo "Skipping this step in 'act' environment."
fi
shell: bash

- name: Print latest commit SHA
id: commit_sha
run: |
commit='ds'
echo "COMMITS='hello'" >> $GITHUB_ENV
echo "COMMITS=hello" >> $GITHUB_OUTPUT
echo "${{git rev-parse HEAD}}i"
echo "commit=${{git rev-parse HEAD}}" >> $GITHUB_ENV
echo "$(git rev-parse HEAD)"
echo "commit=$(git rev-parse HEAD)" >> $GITHUB_ENV
shell: bash

- name: Get latest tag for current branch
id: repo_tag
run: |
echo "${{git describe --tags --abbrev=0 }}"
echo "$(git describe --tags --abbrev=0)"
shell: bash


- name: Get latest commit date
id: latest_commit
run: |
echo "${{git log -1 --format='%at' | xargs -I{} date -r {} '+%Y/%m/%d_%H:%M:%S'}}"
echo "$(git log -1 --format='%at' | xargs -I{} date -r {} '+%Y/%m/%d_%H:%M:%S')"
shell: bash
# envvar steps.latest_commit.outputs.commit_date
Expand Down

0 comments on commit 267cdef

Please sign in to comment.