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

Add branches input to support updating multiple branches #290

Merged
merged 6 commits into from
Oct 19, 2021

Conversation

alejandrohdezma
Copy link
Member

By default, this action uses the repository's default branch to make the updates. This PR adds the branches input to support the features added in scala-steward-org/scala-steward#2281:

- name: Launch Scala Steward
  uses: scala-steward-org/scala-steward-action@v2
  with:
    github-token: ${{ github.token }}
    branches: main,0.1.x,0.2.x

Take into account that this input is used only if updating the repository where the action is being run or using the github-repository input. For cases where the repos-file input is used, you should follow the instructions here and add multiple lines in the markdown file like:

- repo/owner # updates default branch
- repo/owner:0.1.x # updates 0.1.x branch
- repo/owner:0.2.x # updates 0.2.x branch

@github-actions github-actions bot added the enhancement New feature or request label Oct 17, 2021
…ranches

We could already do the same with `branch` + `matrix` but this way we can benefit of the already cloned repo in Steward's workspace.

Signed-off-by: Alejandro Hernández <[email protected]>
…"multiple-branch" change

Signed-off-by: Alejandro Hernández <[email protected]>
@alejandrohdezma alejandrohdezma force-pushed the feature/default-branch branch 2 times, most recently from 94e9a36 to 5ccc7df Compare October 17, 2021 10:35
Signed-off-by: Alejandro Hernández <[email protected]>
@alejandrohdezma alejandrohdezma merged commit afe501c into master Oct 19, 2021
@alejandrohdezma alejandrohdezma deleted the feature/default-branch branch October 19, 2021 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants