Giter Club home page Giter Club logo

last-successful-commit-hash-action's People

Contributors

dependabot[bot] avatar tylermilner avatar

Watchers

 avatar  avatar

last-successful-commit-hash-action's Issues

Fix linter errors

There are some linter overrides in main.js that need to be fixed.

README improvements

Improve REAMDE with some additional info:

  • Why this action exists
    • Wanted to use an action I own in my projects
    • Didn't initially find other actions that did what I wanted
    • Practice implementing a JavaScript-based action and releasing it to the world
  • Alternative actions to consider

Implement release automation

One possible approach is suggested in https://docs.github.com/en/actions/creating-actions/releasing-and-maintaining-actions:

  • Uses JasonEtco/build-and-tag-action to compile the action code into the dist folder automatically when a release is published to GitHub.
  • Once the compilation is complete, a commit is automatically pushed containing the compiled action and the tag that the release was created with is force-updated.
  • Other major version tags (e.g. "v1") are also force-updated.
  • This release workflow is really built around not checking in the dist folder (i.e. added to gitignore) so that the action is only built by CI upon release, which is probably better from a security standpoint.
  • Since the action creates a commit, it requires the contents: write permission defined in the workflow.

Another approach might be softprops/action-gh-release.

This looks interesting for drafting releases as well: https://github.com/release-drafter/release-drafter.

Another one to look at (though it's for a composite action example): https://github.com/cloudposse/github-actions-workflows-github-action-composite

Fix debug output

We're using core.debug() statements now, but there are some improvements that can be made.

First, using the action's debug input is no longer working, since core.debug() output is suppressed unless debug logging is enabled for the repository:
image

We also need to remove the core.debug() statements from the if (debug) blocks.

I still think it's nice to have some debugging functionality that doesn't rely on the ACTIONS_STEP_DEBUG environment variable for quick testing and letting users enable debugging for a single action instead of the whole workflow run. We should look into examples of how other actions have enabled a debug mode via regular input parameters.

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.