Skip to content

[FEATURE] automatic checkout #97

Open
@akostadinov

Description

@akostadinov

Is your feature request related to a problem? Please describe.

I want to have a shorter workflow file and skip checkout step when all needed is to just checkout source from current event.

For example with buildx I can have:

...
      - name: Build and push Docker image
        id: build-and-push
        uses: docker/build-push-action@v2
        with:
          push: ${{ github.event_name != 'pull_request' }}
          tags: ${{ steps.meta.outputs.tags }}
          platforms: ${{ inputs.platforms }}
          labels: ${{ steps.meta.outputs.labels }}
          file: openshift/system/Dockerfile

With buildah I need to do:

- uses: actions/checkout@v3

- name: Build image
    id: build-image
    uses: redhat-actions/buildah-build@v2
    ...

Describe the solution you'd like

Checkout to happen automatically.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions