Skip to content

Commit

Permalink
ci: remove set-output command usage (#342)
Browse files Browse the repository at this point in the history
Issue #, if available:
`set-output` command is deprecated in GitHub Actions.

https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

*Description of changes:*
This change refactors generate timestamp steps in release and rootfs
workflows to use the recommended method for setting outputs.

*Testing done:*

- [x] I've reviewed the guidance in CONTRIBUTING.md

#### License Acceptance

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.

Signed-off-by: Austin Vazquez <[email protected]>
  • Loading branch information
austinvazquez authored Jul 8, 2024
1 parent 123e213 commit 9f48ed7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ jobs:

- name: Generate Timestamp
id: timestamp
run: echo "::set-output name=value::$(date +%s)"
run: echo "{value}={$(date +%s)}" >> $GITHUB_OUTPUT

- name: Add Ventura builds to tarballs
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rootfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
steps:
- name: Generate Timestamp
id: timestamp
run: echo "::set-output name=value::$(date +%s)"
run: echo "{value}={$(date +%s)}" >> $GITHUB_OUTPUT
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
with:
Expand Down

0 comments on commit 9f48ed7

Please sign in to comment.