Coder Social home page Coder Social logo

Comments (9)

damienwebdev avatar damienwebdev commented on August 21, 2024

This was originally addressed by #48 but is now reverted by 6f754f3 and 4885780

I don't really understand why there are 3 different variables for $MAGENTO_PROJECT_NAME ($PROJECT_NAME, $INPUT_PROJECT_NAME)

INPUT_PROJECT_NAME="magento/project-enterprise-edition" && MAGENTO_PROJECT_NAME=""
test -z "${MAGENTO_PROJECT_NAME}" || MAGENTO_PROJECT_NAME=$INPUT_PROJECT_NAME
test -z "$MAGENTO_PROJECT_NAME" && MAGENTO_PROJECT_NAME="magento/project-community-edition"
echo $MAGENTO_PROJECT_NAME

from github-actions-m2.

jissereitsma avatar jissereitsma commented on August 21, 2024

Yes and no. By using env it works for me. By using with it does not work for me. Which YAML are you using?

from github-actions-m2.

damienwebdev avatar damienwebdev commented on August 21, 2024
  steps:
      - uses: actions/checkout@v2
      - name: M2 Integration Tests with Magento 2 (Php7.4)
        uses: extdn/github-actions-m2/magento-integration-tests/7.4
        with:
          module_name: MyPackage
          composer_name: namespace/package
          ce_version: '2.4.3'
          project_name: magento/project-enterprise-edition
        env:
          REPOSITORY_URL: https://repo.magento.com/
          COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}

from github-actions-m2.

jissereitsma avatar jissereitsma commented on August 21, 2024

Ok, in my own trials there is also an env with name PROJECT_NAME set. But the variable structure is indeed bad, to say the least. Let me get into a fix.

from github-actions-m2.

jissereitsma avatar jissereitsma commented on August 21, 2024

To comment upon the confusion: The project was once kickstarted by Kristof who created a MAGENTO_PROJECT_NAME variable in the entrypoint script, but a PROJECT_NAME variable in the action input. I then added a INPUT_PROJECT_NAME variable, so that the input could be either given through with or through env in your own YAML. This is where the current bug was introduced, where both with and env are suddenly required (your mentions of my commits), which is obviously wrong.

However, I would like to then refactor all, so that there is only a single variable PROJECT_NAME which could be either set using with or using env:

        env:
            PROJECT_NAME: "magento/project-enterprise-edition"
        with:
          project_name: magento/project-enterprise-edition

This only means that the environment variable PROJECT_NAME and the input variable INPUT_PROJECT_NAME would need to be supported in the entrypoint script.

from github-actions-m2.

jissereitsma avatar jissereitsma commented on August 21, 2024

Like this: 6ad270b Let me know if this fixes things for you.

from github-actions-m2.

piotrkwiecinski avatar piotrkwiecinski commented on August 21, 2024

I can confirm that using PROJECT_NAME works with EE version

from github-actions-m2.

jissereitsma avatar jissereitsma commented on August 21, 2024

I'm going to close this issue, because I've gotten various reports now that this was solved correctly (even though I suspect @damienwebdev is no longer using this specific solution ;))

from github-actions-m2.

damienwebdev avatar damienwebdev commented on August 21, 2024

@jissereitsma yes, confirming this works, sorry for never closing the issue.

from github-actions-m2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.