Skip to content

Commit

Permalink
Merge pull request #13 from devops-actions/node16
Browse files Browse the repository at this point in the history
Node16
  • Loading branch information
rajbos committed Feb 17, 2023
2 parents 7a0463c + 1a601ef commit c45fe0c
Show file tree
Hide file tree
Showing 121 changed files with 6,462 additions and 61 deletions.
51 changes: 29 additions & 22 deletions .github/workflows/publishing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,36 @@ jobs:
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0

- uses: ./
name: Load used actions
with:
PAT: ${{ secrets.GITHUB_TOKEN }}
id: load-actions
- shell: pwsh
- name: Run from main.js
id: tag_dev
run: |
Write-Host "Found actions [${{ steps.load-actions.outputs.actions }}]"
$content = ${{ steps.load-actions.outputs.actions }}
New-Item -Path 'actions.json' -Value $content -Force | Out-Null
$actions = $content | ConvertFrom-Json
if ($actions.Length -le 0) {
throw "No actions found"
}
else {
Write-Host "Found [$($actions.Length)] actions"
}
- name: Upload result file as artefact
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: actions
path: actions.json
GITHUB_REF= node main.js && false || true
GITHUB_REF=origin/refs/tag/v1 node main.js && false || true
GITHUB_REF=refs/tag/v1 node main.js && false || true
GITHUB_REF=refs/heads/main node main.js && false || true
GITHUB_REF=refs/tags/v1.0.0 node main.js
- name: Test dev
run: |
test "v1.0.0" = "${{steps.tag_dev.outputs.tag}}"
- name: Run dev with strip v
id: tag_dev_strip_v
run: GITHUB_REF=refs/tags/v1.0.0 INPUT_STRIP_V=true node main.js

- name: Test dev with strip v
run: |
test "1.0.0" = "${{steps.tag_dev_strip_v.outputs.tag}}"
- name: Run from action.yml
id: tag_prod
if: startsWith(github.ref, 'refs/tags') == true
uses: ./

- name: Test output from action.yml
if: startsWith(github.ref, 'refs/tags') == true
run: |
test -n "${{steps.tag_prod.outputs.tag}}"
publish:
needs: test-local-action
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ outputs:
tag:
description: Git tag name
runs:
using: node12
using: node16
main: main.js
12 changes: 12 additions & 0 deletions node_modules/.bin/uuid

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions node_modules/.bin/uuid.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions node_modules/.bin/uuid.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 31 additions & 3 deletions node_modules/.package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

143 changes: 138 additions & 5 deletions node_modules/@actions/core/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions node_modules/@actions/core/lib/command.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c45fe0c

Please sign in to comment.