Trying to see if secrets are being loaded properly #696
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Cache Node Modules | ||
uses: actions/cache@v2 | ||
with: | ||
path: '**/node_modules' | ||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
- name: List Secrets | ||
run: echo "Secrets: ${{ secrets }}" | ||
- name: Test Secret Availability | ||
run: | | ||
if [ -z "${{ secrets.DOM_MUTATOR_ACCESS_KEY }}" ]; then | ||
echo "Secret DOM_MUTATOR_ACCESS_KEY is not accessible." | ||
exit 1 | ||
else | ||
echo "Secret DOM_MUTATOR_ACCESS_KEY is accessible." | ||
fi | ||
- name: Set up SSH for deploy key | ||
run: | | ||
mkdir -p ~/.ssh | ||
echo "${{ secrets.DOM_MUTATOR_ACCESS_KEY }}" > ~/.ssh/id_ed25519 | ||
chmod 600 ~/.ssh/id_ed25519 | ||
ssh-keyscan github.com >> ~/.ssh/known_hosts | ||
ssh -vT git@github.com | ||
shell: bash | ||
- name: Debug SSH Key Setup | ||
run: | | ||
ls -la ~/.ssh | ||
cat ~/.ssh/id_ed25519 | ||
ssh -vT git@github.com | ||
shell: bash | ||
- name: Install | ||
run: yarn install --frozen-lockfile | ||
- name: Lint | ||
run: yarn lint |