openSUSE / doc-ci

Continuous integration for SUSE documentation
4 stars 6 forks source link

Deprecating save-state and set-output commands #51

Closed tomschr closed 1 year ago

tomschr commented 1 year ago

Problem

Our GitHub Actions uses sometimes echos like this:

- name: Save state
  run: echo "::save-state name={name}::{value}"

- name: Set output
  run: echo "::set-output name={name}::{value}" 

However, GitHub's blog recommends to replace it with this:

Expected solution

The blog recommends to replace it with:

- name: Save state
  run: echo "{name}={value}" >> $GITHUB_STATE

- name: Set output
  run: echo "{name}={value}" >> $GITHUB_OUTPUT 

Related

tomschr commented 1 year ago

This is now implemented.