Skip to content

Change GH_TOKEN to use secrets in workflow #3

Change GH_TOKEN to use secrets in workflow

Change GH_TOKEN to use secrets in workflow #3

Workflow file for this run

name: Generate the vendor list
on:
# Run the workflow when new code is pushed to the repository
push:
branches:
- main
# Run the workflow manually
workflow_dispatch:
jobs:
generate-vendor-list:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- run: |
gh repo list iarsystems --limit 1000 | grep 'ewarm-.*-example-projects' | cut -f1 > vendors.txt
- name: Upload vendors
uses: actions/upload-artifact@v7
with:
name: vendorlist
if-no-files-found: error
path: |
vendors.txt