Skip to content

Commit

Permalink
update workflow-tester50
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume Falourd <[email protected]>
  • Loading branch information
GuillaumeFalourd committed Aug 4, 2022
1 parent caf1202 commit 26e49b9
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/workflow-tester50.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
name: Test 49 #Related to SO https://stackoverflow.com/questions/73213189/cannot-set-a-env-var-when-using-macos-runner
name: Test 50 #Related to SO https://stackoverflow.com/questions/73232652/validate-crontab-with-github-action

on:
workflow_dispatch:

env:
CRONTAB_FILE : './crontab'

jobs:
job1:
runs-on: macos-latest
name: Check Crontab file
runs-on: ubuntu-latest
steps:
- name: Set variable
run: |
RUNDATEOSX=$(date -j -v-2d +%Y%m%d)
echo "RUNDATEOSX=$RUNDATEOSX" >> $GITHUB_ENV
- name: Print variable
run: |
echo "RUNDATEOSX:" ${{ env.RUNDATEOSX }}
echo "RUNDATEOSX:" $RUNDATEOSX
- uses: actions/checkout@v3
- name: 'run crontab command from file'
run : crontab < $CRONTAB_FILE

0 comments on commit 26e49b9

Please sign in to comment.