Skip to content

Commit

Permalink
switched set-output and save-state to new GITHUB_OUTPUT and GITHUB_ST… (
Browse files Browse the repository at this point in the history
#76)

* switched set-output and save-state to new GITHUB_OUTPUT and GITHUB_STATE usage and updated core actions to v3

* fix busted tests
  • Loading branch information
pirog authored Apr 27, 2023
1 parent d957aed commit 0cae649
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/manual-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- holla-tronic:transfer-issue-action

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Manual Action Test
id: test_action
uses: ./
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ jobs:
strategy:
matrix:
os:
- ubuntu-20.04
- ubuntu-22.04
node-version:
- '14'
steps:
# Install deps and cache
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install node ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: yarn
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/pr-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
strategy:
matrix:
os:
- ubuntu-20.04
- ubuntu-22.04

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Create test issue
uses: actions/github-script@v5
id: new-issue
Expand All @@ -24,7 +24,7 @@ jobs:
try {
const response = await github.rest.issues.create({
owner: context.repo.owner,
repo: transfer-issue-action,
repo: 'transfer-issue-action',
title: 'Transfer Issue Action Test Issue'
});
return response.data.node_id;
Expand All @@ -33,8 +33,7 @@ jobs:
}
- name: Get and set test issue id
id: test-issue
run: |
echo "::set-output name=id::${{steps.new-issue.outputs.result}}"
run: echo "id=${{steps.new-issue.outputs.result}}" >> $GITHUB_OUTPUT
- name: Test Action
id: test_action
uses: ./
Expand Down
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
v2.0.0 [October 26, 2021](https://github.com/lando/argv/releases/tag/v2.0.0)
-------------------------
## v2.1.0 [April 27, 2021](https://github.com/lando/transfer-issue-action/releases/tag/v2.1.0)

* Switched `set-output` and `save-state` to new `$GITHUB_OUTPUT` and `$GITHUB_STATE`. See [this](https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/)
* Updated core actions to `v3`

## v2.0.0 [October 26, 2021](https://github.com/lando/transfer-issue-action/releases/tag/v2.0.0)

* Updated API
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"main": "lib/index.js",
"dependencies": {
"@actions/core": "^1.5.0",
"@actions/core": "^1.10.0",
"@actions/github": "^5.0.0",
"debug": "^4.3.2"
},
Expand Down
25 changes: 19 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
# yarn lockfile v1


"@actions/core@^1.5.0":
version "1.6.0"
resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.6.0.tgz#0568e47039bfb6a9170393a73f3b7eb3b22462cb"
integrity sha512-NB1UAZomZlCV/LmJqkLhNTqtKfFXJZAUPcfl/zqG7EfsQdeUJtaWO98SGbuQ3pydJ3fHl2CvI/51OKYlCYYcaw==
"@actions/core@^1.10.0":
version "1.10.0"
resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.10.0.tgz#44551c3c71163949a2f06e94d9ca2157a0cfac4f"
integrity sha512-2aZDDa3zrrZbP5ZYg159sNoLRb61nQ7awl5pSvIq5Qpj81vwDzdMRKzkWJGJuwVvWpvZKx7vspJALyvaaIQyug==
dependencies:
"@actions/http-client" "^1.0.11"
"@actions/http-client" "^2.0.1"
uuid "^8.3.2"

"@actions/github@^5.0.0":
version "5.0.0"
Expand All @@ -26,6 +27,13 @@
dependencies:
tunnel "0.0.6"

"@actions/http-client@^2.0.1":
version "2.1.0"
resolved "https://registry.yarnpkg.com/@actions/http-client/-/http-client-2.1.0.tgz#b6d8c3934727d6a50d10d19f00a711a964599a9f"
integrity sha512-BonhODnXr3amchh4qkmjPMUO8mFi/zLaaCeCAJZqch8iQqyDnVIkySjB38VHAC8IJ+bnlgfOqlhpyCUZHlQsqw==
dependencies:
tunnel "^0.0.6"

"@babel/[email protected]":
version "7.12.11"
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.12.11.tgz#f4ad435aa263db935b8f10f2c552d23fb716a63f"
Expand Down Expand Up @@ -1497,7 +1505,7 @@ tslib@^1.9.0:
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"
integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==

[email protected]:
[email protected], tunnel@^0.0.6:
version "0.0.6"
resolved "https://registry.yarnpkg.com/tunnel/-/tunnel-0.0.6.tgz#72f1314b34a5b192db012324df2cc587ca47f92c"
integrity sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==
Expand Down Expand Up @@ -1541,6 +1549,11 @@ uri-js@^4.2.2:
dependencies:
punycode "^2.1.0"

uuid@^8.3.2:
version "8.3.2"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==

v8-compile-cache@^2.0.3:
version "2.3.0"
resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee"
Expand Down

0 comments on commit 0cae649

Please sign in to comment.