Update test.yaml #6
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
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: | | |
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 |