Skip to content

Commit

Permalink
Update GH actions to use GITHUB_OUTPUT (#1617)
Browse files Browse the repository at this point in the history
* use GITHUB_STATE
  • Loading branch information
umangyadav authored Mar 13, 2023
1 parent 1741708 commit c729499
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,8 @@ jobs:

- name: Prepare timestamp
id: cache_timestamp
shell: cmake -P {0}
run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=timestamp::${current_date}")
shell: bash
run: echo timestamp="$(date +'%Y-%m-%dT%H:%M:%S')" >> $GITHUB_OUTPUT

- name: Cache files for tidy
uses: pat-s/[email protected]
Expand Down Expand Up @@ -88,10 +86,8 @@ jobs:

- name: Prepare timestamp
id: cache_timestamp
shell: cmake -P {0}
run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=timestamp::${current_date}")
shell: bash
run: echo timestamp="$(date +'%Y-%m-%dT%H:%M:%S')" >> $GITHUB_OUTPUT

- name: Cache files for cppcheck
uses: pat-s/[email protected]
Expand Down Expand Up @@ -235,10 +231,8 @@ jobs:
rbuild prepare -d cget -s gh
- name: Prepare timestamp
id: cache_timestamp
shell: cmake -P {0}
run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=timestamp::${current_date}")
shell: bash
run: echo timestamp="$(date +'%Y-%m-%dT%H:%M:%S')" >> $GITHUB_OUTPUT

- name: Cache files for ccache
# Ignore the failure of a step and avoid terminating the job.
Expand Down Expand Up @@ -331,10 +325,8 @@ jobs:
rbuild prepare -d cget -s gh
- name: Prepare timestamp
id: cache_timestamp
shell: cmake -P {0}
run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=timestamp::${current_date}")
shell: bash
run: echo timestamp="$(date +'%Y-%m-%dT%H:%M:%S')" >> $GITHUB_OUTPUT

- name: Cache files for ccache
# Ignore the failure of a step and avoid terminating the job.
Expand Down

0 comments on commit c729499

Please sign in to comment.