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

Upgrade action runtime to node 20 #21

Merged
merged 3 commits into from Oct 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
26 changes: 26 additions & 0 deletions .devcontainer/devcontainer.json
@@ -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
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
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
@@ -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