Skip to content

Update test.yaml

Update test.yaml #7

Workflow file for this run

on:
workflow_dispatch:
pull_request:
types: [opened, reopened, synchronize]
branches:
- "18.0"
env:
# Setting an environment variable with the value of a configuration variable
env_var: ${{ vars.CIAPPID }}
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Log
run: |
env
echo "CIAPPID ${{ vars.CIAPPID }}"
echo "variable from shell environment : $env_var"
- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.CIAPPID }}
private-key: ${{ secrets.CIAPPPRIKEY }}
- name: Use the token
env:
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
run: |
gh api dolibarr