Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update single_app_run.yml #594

Merged
merged 5 commits into from
Feb 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 14 additions & 12 deletions .github/workflows/single_app_run.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: nightly
name: single_app_run

on:
workflow_dispatch:
inputs:
folder:
description: "Select library folder (abstractions, components.abb.robotics, components.abstractions)"
description: "Select library folder"
required: true
default: "template.axolibrary"
type: choice
Expand Down Expand Up @@ -36,25 +36,27 @@ on:
- template.axolibrary
- timers
- utils

jobs:
app-run-manual-with-selected-folder:
runs-on: [self-hosted, Windows, X64, L3, AX, APP]
steps:
- name: Get Branch Name
shell: pwsh
run: |
if ($env:GITHUB_REF -like "refs/pull/*") {
$BRANCH_NAME = "${{ github.event.pull_request.head.ref }}"
} else {
$BRANCH_NAME = $env:GITHUB_REF -replace 'refs/heads/', ''
}
Write-Host "Triggered on branch: $BRANCH_NAME"
"BRANCH_NAME=$BRANCH_NAME" | Out-File -FilePath $env:GITHUB_ENV -Append
if ($env:GITHUB_REF -like "refs/pull/*") {
$BRANCH_NAME = "${{ github.event.pull_request.head.ref }}"
} else {
$BRANCH_NAME = $env:GITHUB_REF -replace 'refs/heads/', ''
}
Write-Host "Triggered on branch: $BRANCH_NAME"
"BRANCH_NAME=$BRANCH_NAME" | Out-File -FilePath $env:GITHUB_ENV -Append

- name: Print Inputs
- name: Print and store library folder
shell: pwsh
run: |
$APP_FOLDER=${{ github.event.inputs.folder }}
echo "Selected folder: $APP_FOLDER"
$APP_FOLDER = "${{ inputs.folder }}"
Write-Host "Selected folder: $APP_FOLDER"
"APP_FOLDER=$APP_FOLDER" | Out-File -FilePath $env:GITHUB_ENV -Append

- name: Checkout
Expand Down
Loading