Code Monkey home page Code Monkey logo

openapi-diff-action's Introduction

Hi ๐Ÿ‘‹, I'm Dmitry

Python Software Engineer

  • Developing as a Python Backend developer. I plan to grow to Tech Lead.
  • Keep a balance between quality and productivity. I take initiative in development.
  • I take criticism calmly. Always happy to hear/give feedback.
  • I regularly attend training courses. I watch reports from various IT conferences (I plan to speak in the future). I spend time developing Soft skills.
  • Open to new technologies/stack. I quickly learn something new.
  • I consider it important to contribute to open source projects (find bugs, fix architectural flaws).
  • Hobbies: development of open-source projects, gym (powerlifting), PlayStation.

Work Profiles:

head hunter habr carerr habr carerr

Languages and Tools:

python fastapi django docker linux mongodb nginx postgresql redis rabbitmq selenium typescript javascript react

swimmwatch

ย swimmwatch

openapi-diff-action's People

Contributors

dependabot[bot] avatar swimmwatch avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

vaunorage dtkav

openapi-diff-action's Issues

Action fails if all output formats are specified in a non .tmp folder

Expected Behavior

When I specify all the output formats with my specified filenames, they should be created.

Current Behavior

The action fails with:

Run sudo chown -R $USER:$USER .tmp
sudo chown -R $USER:$USER .tmp
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
env:
run_number: ${GITHUB_RUN_NUMBER}
chown: cannot access '.tmp': No such file or directory
Error: Process completed with exit code 1.

Possible Solution

The step "Post: Change folder own group" which does run 'sudo chown -R $USER:$USER .tmp' should only occur if .tmp exists. Or if it does occur, ignore the error.

Steps to Reproduce

Link to live example build https://github.com/ikenna/acme-pet-supplies/runs/7460315228?check_suite_focus=true

  1. Run the action, specifying all the available output formats in custom filenames. E.g
  - name: "Run breaking change check (with OpenAPITools/openapi-diff)"
    id: diff_state
    uses: swimmwatch/[email protected]
    with:
      old-spec: base/reference/product-catalog-api.oas.yaml
      new-spec: head/reference/product-catalog-api.oas.yaml
      json: "diff.json"
      markdown: "diff.md"
      text: "diff.txt"

Context (Environment)

  1. Failing build with all the formats specified in a non .tmp path : https://github.com/ikenna/acme-pet-supplies/runs/7460315228?check_suite_focus=true

  2. Passing build with only three formats specified in a non .tmp path : https://github.com/ikenna/acme-pet-supplies/runs/7460555288?check_suite_focus=true

Detailed Description

I can't successfully run the action if I specify custom names for all the output formats. But I can if I specify a subset.

Possible Implementation

Ignore the error if .tmp does not exist.

run: sudo chown -R $USER:$USER .tmp 2>/dev/null

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.