ci: add version tag comments for actions in workflows #385
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: actions | |
on: | |
push: | |
paths-ignore: | |
- README.md | |
- LICENSE.md | |
- 'docs/**' | |
- '.github/dependabot.yaml' | |
- '.gitignore' | |
branches: | |
- root | |
pull_request: | |
paths-ignore: | |
- README.md | |
- LICENSE.md | |
- 'docs/**' | |
- '.github/dependabot.yaml' | |
- '.gitignore' | |
workflow_dispatch: | |
jobs: | |
actions: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
fail-fast: false | |
name: actions | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: pwsh | |
steps: | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
fetch-depth: 0 | |
- run: Get-ChildItem -Force | |
- name: Run action | |
uses: ./ | |
id: jjversion | |
- name: Display jjversion outputs | |
run: | | |
echo "Major: ${{ steps.jjversion.outputs.major }}" | |
echo "Minor: ${{ steps.jjversion.outputs.minor }}" | |
echo "Patch: ${{ steps.jjversion.outputs.patch }}" | |
echo "MajorMinorPatch: ${{ steps.jjversion.outputs.majorMinorPatch }}" | |
echo "Sha: ${{ steps.jjversion.outputs.sha }}" | |
echo "ShortSha: ${{ steps.jjversion.outputs.shortSha }}" | |
- run: Get-ChildItem -Name | |
- name: Run action specifying version | |
uses: ./ | |
id: jjversion2 | |
with: | |
version: v0.3.31 | |
- name: Display jjversion outputs | |
run: | | |
echo "Major: ${{ steps.jjversion2.outputs.major }}" | |
echo "Minor: ${{ steps.jjversion2.outputs.minor }}" | |
echo "Patch: ${{ steps.jjversion2.outputs.patch }}" | |
echo "MajorMinorPatch: ${{ steps.jjversion2.outputs.majorMinorPatch }}" | |
echo "Sha: ${{ steps.jjversion2.outputs.sha }}" | |
echo "ShortSha: ${{ steps.jjversion2.outputs.shortSha }}" |