mirror of
https://staging.allspice.dev/AllSpice-Demos/Actions-demo.git
synced 2025-04-24 09:13:21 +00:00
Merge pull request 'Replace ${{github.var}} with $ {{allspice.var}}' (#31) from dd/replace-action-workflow-variables into main
Reviewed-on: https://staging.allspice.dev/AllSpice-Demos/Actions-demo/pulls/31 Reviewed-by: kyle <kyle@allspice.io> Reviewed-by: jon <jon@noreply.staging.allspice.dev>
This commit is contained in:
commit
3a2ed426cc
.allspice/workflows
@ -18,7 +18,7 @@ jobs:
|
||||
|
||||
- name: "[🔎->📂] List files in repo 🔎"
|
||||
run: |
|
||||
ls -la ${{ github.workspace }}
|
||||
ls -la ${{ allspice.workspace }}
|
||||
|
||||
# Installs python requirements from the requirements.txt file
|
||||
- name: "[🤼->🖥️] Install python requirements"
|
||||
@ -29,16 +29,16 @@ jobs:
|
||||
run: python .allspice/utils/hello-world.py
|
||||
|
||||
# Run the py-allspice self-test script, this will ping the server and verify the API is working
|
||||
# Parameters: ${github.server_url} and ${github.token} are automatic Workflow variables and are used to authenticate the AllSpice API
|
||||
# Parameters: ${allspice.server_url} and ${allspice.token} are automatic Workflow variables and are used to authenticate the AllSpice API
|
||||
- name: "[🔑->🕸️] Test AllSpice API with py-allspice 🔎"
|
||||
run: python .allspice/utils/py-allspice-BIST.py --allspice_hub_url ${{ github.server_url }} --allspice_token ${{ github.token }}
|
||||
run: python .allspice/utils/py-allspice-BIST.py --allspice_hub_url ${{ allspice.server_url }} --allspice_token ${{ allspice.token }}
|
||||
|
||||
# Generate a netlist from Altium .PcbDoc file
|
||||
# Run the generate_netlist.py script from the .allspice/utils directory
|
||||
- name: Generate Netlist
|
||||
run: |
|
||||
echo -e "repo ${{ github.repository }}"
|
||||
ALLSPICE_AUTH_TOKEN=${{ github.token }} python .allspice/utils/generate_netlist.py "${{ github.repository }}" "Archimajor.PcbDoc" --allspice_hub_url "${{ github.server_url }}" --output_file Archimajor.pcbdoc.netlist.txt
|
||||
echo -e "repo ${{ allspice.repository }}"
|
||||
ALLSPICE_AUTH_TOKEN=${{ allspice.token }} python .allspice/utils/generate_netlist.py "${{ allspice.repository }}" "Archimajor.PcbDoc" --allspice_hub_url "${{ allspice.server_url }}" --output_file Archimajor.pcbdoc.netlist.txt
|
||||
|
||||
|
||||
# Print the netlist file to the terminal
|
||||
|
@ -19,7 +19,7 @@ jobs:
|
||||
- name: Print repository Action variable 🔎
|
||||
run: |
|
||||
echo "Repository variable VARIABLE_NAME = ${{ vars.VARIABLE_NAME }}"
|
||||
echo "Repository variables are stored in ${{ github.server_url }}/${{ github.repository }}/settings/actions/variables"
|
||||
echo "Repository variables are stored in ${{ allspice.server_url }}/${{ allspice.repository }}/settings/actions/variables"
|
||||
|
||||
- name: Use Secret 🔎
|
||||
# Store the secret in an environment variable YOUR_SECRET
|
||||
@ -28,7 +28,7 @@ jobs:
|
||||
|
||||
# Demonstrate how to use secrets in the workflow
|
||||
run: |
|
||||
echo "Secrets are stored in ${{ github.server_url }}/${{ github.repository }}"/settings/actions/secrets
|
||||
echo "Secrets are stored in ${{ allspice.server_url }}/${{ allspice.repository }}"/settings/actions/secrets
|
||||
echo "Secrets are only available to the repository admins and the workflow"
|
||||
echo "Store API Tokens in secrets and use them in the workflow without exposing them"
|
||||
echo "Secrets are not printed to the terminal for security reasons and will be replaced with ***"
|
||||
|
Loading…
Reference in New Issue
Block a user