Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup ecm-distro-tools GitHub Action #267

Merged
merged 20 commits into from
Oct 5, 2023
Merged

Conversation

brooksn
Copy link
Contributor

@brooksn brooksn commented Oct 3, 2023

This PR introduces the GitHub action for this repository, named Setup ecm-distro-tools. It simply downloads the assets from a named release, and puts them in the PATH. Inspired by hashicorp/setup-terraform.

GitHub allows any repository to publish only one action. Because users may have a variety of cases for ecm-distro-tools functionality in their workflows, this action aims to be as flexible as possible to cover future needs.

The action will not be published to the Marketplace.

usage:

name: Main
on: push
jobs:
  main:
    runs-on: ubuntu-latest
    steps:
    - name: setup ecm-distro-tools
      uses: rancher/ecm-distro-tools
      with:
        version: v0.23.0
      env:
        GH_TOKEN: ${{ github.token }}
    - name: release notes
      run: gen_release_notes -h

Providing a GitHub token is recommended to avoid rate limiting, but not required.

brooksn added 18 commits October 2, 2023 22:35
Signed-off-by: Brooks Newberry <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]>
README.md Show resolved Hide resolved
action.yml Show resolved Hide resolved
@brooksn
Copy link
Contributor Author

brooksn commented Oct 4, 2023

The user can specify which version of the install script to use like this:

uses: rancher/[email protected]
uses: rancher/ecm-distro-tools@d3d56ddf759357299e72d779bba224f42e2852f2
uses: rancher/ecm-distro-tools@v1

Note that the version of the install script is separate from the version of the binaries. Alternately, we could explore using omitting the version argument and using the same version for both with this form.

@johnatasr johnatasr self-requested a review October 4, 2023 20:57
@brooksn brooksn linked an issue Oct 5, 2023 that may be closed by this pull request
Signed-off-by: Brooks Newberry <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]>
@brooksn brooksn requested a review from briandowns October 5, 2023 22:19
@brooksn brooksn merged commit 60e9529 into rancher:master Oct 5, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GitHub action
4 participants