Skip to content

Commit

Permalink
Merge pull request #21 from tspascoal/tspascoal/upgrade-action-node20
Browse files Browse the repository at this point in the history
Tspascoal/upgrade-action-node20
  • Loading branch information
tspascoal committed Oct 7, 2023
2 parents ba78054 + 6c688f6 commit 57e9f42
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 5 deletions.
26 changes: 26 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "Node.js & TypeScript",
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye",
"customizations": {
"vscode": {
"extensions": [
"GitHub.vscode-github-actions"
]
}
}

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "yarn install",

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ It emits two outputs which are available via the `steps` [output context](https:
See [action.yml](action.yml)

```yaml
- uses: tspascoal/get-user-teams-membership@v2
- uses: tspascoal/get-user-teams-membership@v3
with:
username: # The github username for which we want to fetch teams membership in a given organization.
organization: # optional. Default value ${{ github.repository_owner }}
Expand Down Expand Up @@ -43,7 +43,7 @@ Checks if the user who triggered the worfklow (actor) belongs to one of two team
and if not adds a label to the pull request to signal it's an external contribution.

```yaml
- uses: tspascoal/get-user-teams-membership@v2
- uses: tspascoal/get-user-teams-membership@v3
id: actorTeams
with:
username: ${{ github.actor }}
Expand All @@ -58,7 +58,7 @@ and if not adds a label to the pull request to signal it's an external contribut
Checks if the user who triggered the workflow (actor) doesn't belong to the `octocats` or `testing` team

```yaml
- uses: tspascoal/get-user-teams-membership@v2
- uses: tspascoal/get-user-teams-membership@v3
id: checkUserMember
with:
username: ${{ github.actor }}
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ outputs:
isTeamMember:
description: 'Predicate to indicate if user belongs to team'
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "get-user-teams-membership",
"version": "2.1.0",
"version": "3.0.0",
"description": "GitHub Action to get a list a user teams membership",
"main": "dist/index.js",
"scripts": {
Expand Down

0 comments on commit 57e9f42

Please sign in to comment.