Skip to content

Commit

Permalink
Update test.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy authored Nov 22, 2024
1 parent 96f985c commit 0aeed24
Showing 1 changed file with 3 additions and 23 deletions.
26 changes: 3 additions & 23 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,12 @@ on:
types: [opened, reopened, synchronize]
branches:
- "18.0"

env:
# Setting an environment variable with the value of a configuration variable
var2: ${{ vars.AAA }}

jobs:
test:
testjob:
runs-on: ubuntu-latest

environment: test

steps:
- name: Log
run: |
echo "variable from shell environment : ${{ vars.AAA }}"
echo "variable from shell environment : ${{ env.var2 }}"
- 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
echo "variable : ${{ vars.AAA }}"
echo "env : ${{ env.AAA }}"

0 comments on commit 0aeed24

Please sign in to comment.