Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning Output from GitHub Actions #703

Closed
jacobwoffenden opened this issue Oct 11, 2022 · 6 comments
Closed

Warning Output from GitHub Actions #703

jacobwoffenden opened this issue Oct 11, 2022 · 6 comments

Comments

@jacobwoffenden
Copy link

Troubleshooting

Before submitting a bug report please read the Troubleshooting doc.

Behaviour

Warning: The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

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

Action authors who are using the toolkit should update the @actions/core package to v1.10.0 or greater to get the updated saveState and setOutput functions.

I can see the latest v3 release (v3.1.1) uses @actions/core@^1.9.0 https://github.com/docker/build-push-action/blob/v3.1.1/package.json#L31, and master has already been updated to @actions/core@^1.10.0 via #695

Steps to reproduce this issue

  1. use docker/build-push-action@v3 to build an image

Expected behaviour

Tell us what should happen

No warnings

Actual behaviour

Tell us what happens instead

Warning output from GitHub Actions

Configuration

  • Repository URL (if public):
  • Build URL (if public):
      - name: Build Container
        id: build
        uses: docker/build-push-action@v3
        with:
          file: Containerfile
          context: .
          platforms: linux/${{ matrix.platform }}
          load: true
          tags: |
            container:latest

Logs

Download the log file of your build and attach it to this issue.

@jacobwoffenden jacobwoffenden changed the title Warning Output from GitHub Actions Regarding `` Warning Output from GitHub Actions Oct 11, 2022
@crazy-max
Copy link
Member

Should be good with latest release

@kedare
Copy link

kedare commented Oct 18, 2022

Do we have to change anything in our workflows ?
I'm still using docker/build-push-action@v3 and gets this error, should we just wait a few more days or do we have to force a specific, more precise, version ?
Thanks

@jacobwoffenden
Copy link
Author

Are you using any other Docker actions @kedare ? I still see this warning output from a workflow that uses the following actions:

  • docker/setup-qemu-action
  • docker/setup-buildx-action
  • docker/build-push-action

Frustratingly the actions UI doesn't specify which one causes it

@kedare
Copy link

kedare commented Oct 19, 2022

I just use the build push one

@crazy-max
Copy link
Member

@kedare This has been fixed for docker/build-push-action@v3.2.0 and docker/build-push-action@v3 and all other Docker actions as well (bake-action, setup-buildx-action, setup-qemu-action, metadata-action).

@crazy-max
Copy link
Member

Frustratingly the actions UI doesn't specify which one causes it

You can find out which step generates a warning by clicking on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants