Khttps://github.com/MicrosoftDocs/pipelines-javaon: push
jobs:
generate-a-secret-output:
runs-on: ubuntu-latest
steps:
- id: sets-a-secret
name: Generate, mask, and output a secret
run: |
the_secret=$((RANDOM))
echo "::add-mask::$the_secret"
echo "secret-number=$the_secret" >> "$GITHUB_OUTPUT"
- name: Use that secret output (protected by a mask)
run: |
echo "the secret number is ${{ steps.sets-a-secret.outputs.secret-number }}"
jobs:
bash-example:
runs-on: ubuntu-latest
env:
MY_NAME: "Mona The Octocat"
steps:
- name: bash-version
run: echo "::add-mask::$MY_NAME"
Topic :: Software Development :: Testing :: Traffic GenerationEnvironment :: GPU :: NVIDIA CUDA :: 7.0Environment :: Console# About source code imports using the command line
You can use command line tools to import source code and its revision history to GitHub.
Importing your source code to GitHub makes it easier for you and others to work together on projects and manage code. GitHub helps you collaborate, track changes, and organize tasks, making it simpler to build and manage projects. For more information, see About GitHub and Git.
If you want to import a Git repository to GitHub.com, and the repository is stored on a code hosting service that is publicly available on the internet, we recommend using GitHub Importer. For more information, see Using GitHub Importer.
If your source code is not tracked by Git or is not publicly available, you can use the command line instead.
-
To import a Git repository that is stored on a code hosting service that is not accessible from the public internet, see Importing an external Git repository using the command line.
-
To import code that is only stored locally, and is either tracked by Git or not tracked by any version control system, see Adding locally hosted code to GitHub.
-
To import code that is tracked by any version control system other than Git, first convert the repository to Git, then push the Git repository to GitHub.
All of these tools import source code and revision history, only. If you also want to import your settings and your collaboration history, such as issues and pull requests, you'll need to use more advanced tools. To determine the best tool to use for your migration, see Planning your migration to GitHub.
Further reading
Khttps://github.com/MicrosoftDocs/pipelines-javaon: push
jobs:
generate-a-secret-output:
runs-on: ubuntu-latest
steps:
- id: sets-a-secret
name: Generate, mask, and output a secret
run: |
the_secret=$((RANDOM))
echo "::add-mask::$the_secret"
echo "secret-number=$the_secret" >> "$GITHUB_OUTPUT"
- name: Use that secret output (protected by a mask)
run: |
echo "the secret number is ${{ steps.sets-a-secret.outputs.secret-number }}"
jobs:
bash-example:
runs-on: ubuntu-latest
env:
MY_NAME: "Mona The Octocat"
steps:
- name: bash-version
run: echo "::add-mask::$MY_NAME"
Topic :: Software Development :: Testing :: Traffic GenerationEnvironment :: GPU :: NVIDIA CUDA :: 7.0Environment :: Console# About source code imports using the command line
You can use command line tools to import source code and its revision history to GitHub.
Importing your source code to GitHub makes it easier for you and others to work together on projects and manage code. GitHub helps you collaborate, track changes, and organize tasks, making it simpler to build and manage projects. For more information, see About GitHub and Git.
If you want to import a Git repository to GitHub.com, and the repository is stored on a code hosting service that is publicly available on the internet, we recommend using GitHub Importer. For more information, see Using GitHub Importer.
If your source code is not tracked by Git or is not publicly available, you can use the command line instead.
To import a Git repository that is stored on a code hosting service that is not accessible from the public internet, see Importing an external Git repository using the command line.
To import code that is only stored locally, and is either tracked by Git or not tracked by any version control system, see Adding locally hosted code to GitHub.
To import code that is tracked by any version control system other than Git, first convert the repository to Git, then push the Git repository to GitHub.
All of these tools import source code and revision history, only. If you also want to import your settings and your collaboration history, such as issues and pull requests, you'll need to use more advanced tools. To determine the best tool to use for your migration, see Planning your migration to GitHub.
Further reading