2
0
Fork 0
mirror of https://code.forgejo.org/docker/build-push-action.git synced 2025-09-16 18:06:55 +00:00

Add setup-buildx action (#71)

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2020-08-07 11:01:05 +02:00
parent 836357fa9e
commit 6df1822dc3
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
20 changed files with 11823 additions and 0 deletions

View file

@ -0,0 +1,14 @@
// From https://github.com/actions/checkout/blob/master/src/state-helper.ts
import * as coreCommand from '@actions/core/lib/command';
/**
* Indicates whether the POST action is running
*/
export const IsPost = !!process.env['STATE_isPost'];
// Publish a variable so that when the POST action runs, it can determine it should run the cleanup logic.
// This is necessary since we don't have a separate entry point.
if (!IsPost) {
coreCommand.issueCommand('save-state', {name: 'isPost'}, 'true');
}