36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
name: Try out action
|
|
|
|
on:
|
|
push:
|
|
|
|
jobs:
|
|
try-actions:
|
|
name: Try action
|
|
runs-on: pi
|
|
env:
|
|
SPECIFIC_BRANCH: chore/update-pre-commit
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- run: echo Current branch ${{github.ref_name}}
|
|
- name: versionup
|
|
uses: https://git.horstenkamp.eu/Philipp/version-up-action.git@${{github.ref_name}}
|
|
with:
|
|
url-pattern: https://dl.gitea.com/act_runner/{{VERSION}}/act_runner-{{VERSION}}-linux-arm-7
|
|
start-version: 0.1.1
|
|
- run: |
|
|
echo "Version found and result returned: ${{steps.versionup.outputs.current_version}}"
|
|
echo "Output current_version is ${{steps.versionup.outputs.current_version}}"
|
|
echo "Output current_version is ${{current_version}}"
|
|
|
|
test-job:
|
|
runs-on: pi
|
|
steps:
|
|
- name: Set output
|
|
id: set-output
|
|
run: |
|
|
echo "::set-output name=current_version::1.2.3"
|
|
- name: Use output
|
|
run: |
|
|
echo "Output current_version is ${{steps.set-output.outputs.current_version}}"
|
|
echo "Output current_version is ${{current_version}}"
|