Skip to content

Commit

Permalink
💥 feat: bump GH action to Node20, drop Node16 (#87)
Browse files Browse the repository at this point in the history
## 💌 Description

<!-- Add a more detailed description of the changes if needed. -->
- drop support for Node16 (GH Action)
- add support for Node20 (GH Action)
- bump deps

## 🔗 Related issue

<!-- If your PR refers to a related issue, link it here. -->
Close: #86

## 🔄️ Type of change

<!-- Mark with an `x` all the checkboxes that apply (like `[x]`) -->

- [ ] 📝 Examples, docs, tutorials
- [ ] 🐛 Bug fix (non-breaking change which fixes an issue)
- [ ] 🥂 Improvement (non-breaking change which improves an existing
feature)
- [ ] ✨ New feature (non-breaking change which adds functionality)
- [X] 💥 Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] 🔒 Security fix
- [ ] ⬆️ Dependencies update

## ✔️ Checklist

<!-- Mark with an `x` all the checkboxes (like `[x]`) -->

- [X] I've read the [`Code of
Conduct`](../blob/main/.github/CODE_OF_CONDUCT.md) document.
- [X] I've read the
[`Contributing`](../blob/main/.github/CONTRIBUTING.md) guide.
  • Loading branch information
DariuszPorowski authored Nov 1, 2023
1 parent cdb61ff commit b6413b1
Show file tree
Hide file tree
Showing 6 changed files with 1,544 additions and 1,756 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repos:
# files: .pre-commit-config.yaml

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-symlinks
- id: trailing-whitespace
Expand All @@ -40,7 +40,7 @@ repos:
exclude: package-lock.json

- repo: https://github.com/gitleaks/gitleaks
rev: v8.17.0
rev: v8.18.0
hooks:
- id: gitleaks
args:
Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ The below example assumes the Deployment Environment name is `staging` and conta
```yaml
- name: Staging Environment Variables
id: staging-env-vars
uses: raven-actions/environment-variables@v1
uses: raven-actions/environment-variables@v2
with:
github-token: ${{ secrets.MY_GH_TOKEN }}
environment: staging
Expand All @@ -58,19 +58,19 @@ In the subsequence step, you can use variables in two ways.
1. as `action outputs`, where the output name is the variable key.

```yaml
- run: |
echo "${{ steps.staging-env-vars.outputs.MY_VAR1 }}"
echo "${{ steps.staging-env-vars.outputs.FOOBAR }}"
```
```yaml
- run: |
echo "${{ steps.staging-env-vars.outputs.MY_VAR1 }}"
echo "${{ steps.staging-env-vars.outputs.FOOBAR }}"
```

1. as `environment variables`, where the env name is the variable key.

```yaml
- run: |
echo "${{ env.MY_VAR1 }}"
echo "${FOOBAR}"
```
```yaml
- run: |
echo "${{ env.MY_VAR1 }}"
echo "${FOOBAR}"
```

Whatever method you choose the output will be:

Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ inputs:
default: 'false'

runs:
using: node16
using: node20
main: dist/index.js
Loading

0 comments on commit b6413b1

Please sign in to comment.