Code Monkey home page Code Monkey logo

jsonfileversioner's Introduction

Welcome to my Github presense

  • ๐Ÿ’ฌ The majority of my OSS activity is related to DevOps tools, and most commonly developing Azure DevOps Pipeline Extensions. Feel free to reach out to me on this subject if you think I can help.
  • ๐Ÿ“ซ Reach me via the Discussions area of the appropriate GitHub repo or via social media as listed in the profile panel on this page
  • ๐Ÿ˜„ Pronouns: He/Him

Recent Blog Posts

jsonfileversioner's People

Contributors

bm-fez avatar chrislgardner avatar dependabot[bot] avatar rfennell avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

jsonfileversioner's Issues

File does not get updated

Hi So I am brand new to GitHub Actions, so please forgive me if I am missing a simple step.

I have created my yml file

name: CI

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1
    - name: Run a one-line script
      run: echo Hello, world!
    - name: Run a multi-line script
      run: |
        echo Add other actions to build,
        echo test, and deploy your project.
    - name: Apply Version to JSON file
      uses: rfennell/JSONFileVersioner@v1
      with:
        path: 'testdata'
        field: 'version'
        VersionNumber: '1.2.3'
        filenamepattern: '.json' 
        recursion: 'true'

And I have my folder structure as:
root>testdata>version.json

Inside that json file I have

{
"version": 1.1.1
}

I get no errors when it runs, but once it it completed the version is still 1.1.1

Am I missing a step here?

json file is not updated

Thanks for helping me with the error in my first issue. The action is not throwing errors now however my Requirements.json file is not updated.

Maybe I don't understand actions at all... How is the updated Requirements.json going to get back into my master branch? I don't know...

Anyways, expected action result:
testdata/Requirements.json version value is changed to "1.0.0".

{
  "version": "1.0.0"
}

Actual result:
testdata/Requirements.json is not updated.

{
  "version": "update-me"
}

repo:
https://github.com/kpoxo6op/xo
action:

name: CI

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1
    - uses: rfennell/JSONFileVersioner@v1
      with:
        path: 'testdata'
        field: version
        VersionNumber: '1.0.0'
        filenamepattern: '.json'
        recursion: 'true'

action log attached
logs_24.zip

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.