Skip to content

Commit

Permalink
Random for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
desistefanova committed Jun 13, 2022
1 parent 5f4a02c commit 7194115
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,7 @@ jobs:

- name: Generate unique job id
id: generate_job_id
run: |
echo "BAAS_DIFFERENTIATOR=d${{ matrix.os == 'windows' && '%' || '$' }}RANDOM${{ matrix.os == 'windows' && '%' || '$' }}100" >> $GITHUB_ENV
echo "${{ env.BAAS_DIFFERENTIATOR }}"
run: echo "${{ matrix.os == 'windows' && 'set' || '' }}BAAS_DIFFERENTIATOR=d$((RANDOM%100))" >> $GITHUB_ENV

- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -191,9 +189,7 @@ jobs:

- name: Generate unique job id
id: generate_job_id
run: |
echo "BAAS_DIFFERENTIATOR=f${{ matrix.os == 'windows' && '%' || '$' }}RANDOM${{ matrix.os == 'windows' && '%' || '$' }}100" >> $GITHUB_ENV
echo "${{ env.BAAS_DIFFERENTIATOR }}"
run: echo "${{ matrix.os == 'windows' && 'set' || '' }}BAAS_DIFFERENTIATOR=f$((RANDOM%100))" >> $GITHUB_ENV

- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -254,9 +250,7 @@ jobs:

- name: Generate unique job id
id: generate_job_id
run: |
echo "BAAS_DIFFERENTIATOR=i${{ matrix.os == 'windows' && '%' || '$' }}RANDOM${{ matrix.os == 'windows' && '%' || '$' }}100" >> $GITHUB_ENV
echo "${{ env.BAAS_DIFFERENTIATOR }}"
run: echo "${{ matrix.os == 'windows' && 'set' || '' }}BAAS_DIFFERENTIATOR=i$((RANDOM%100))" >> $GITHUB_ENV

- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -314,9 +308,7 @@ jobs:

- name: Generate unique job id
id: generate_job_id
run: |
echo "BAAS_DIFFERENTIATOR=a${{ matrix.os == 'windows' && '%' || '$' }}RANDOM${{ matrix.os == 'windows' && '%' || '$' }}100" >> $GITHUB_ENV
echo "${{ env.BAAS_DIFFERENTIATOR }}"
run: echo "${{ matrix.os == 'windows' && 'set' || '' }}BAAS_DIFFERENTIATOR=a$((RANDOM%100))" >> $GITHUB_ENV

- name: Checkout
uses: actions/checkout@v2
Expand Down

0 comments on commit 7194115

Please sign in to comment.