From bdee209e56948dc95e1b5d7de325760762a09163 Mon Sep 17 00:00:00 2001 From: Jimmy Briggs Date: Mon, 26 Feb 2024 13:22:56 -0500 Subject: [PATCH] Update dnscontrol.yml --- .github/workflows/dnscontrol.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dnscontrol.yml b/.github/workflows/dnscontrol.yml index 8c74e82..6687fd9 100644 --- a/.github/workflows/dnscontrol.yml +++ b/.github/workflows/dnscontrol.yml @@ -62,15 +62,24 @@ jobs: - name: Get Date id: get_date - run: echo "REPORT_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT + run: echo "REPORT_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV + + - name: Test Echo Date + env: + REPORT_DATE: ${{ env.REPORT_DATE }} + REPORT_FILE: "./reports/$(${{ env.REPORT_DATE }})-Report.txt" + run: | + echo "$REPORT_DATE" + echo "$REPORT_FILE" - name: Push id: dnscontrol_push uses: is-cool-me/dnscontrol-action@v4.7.3 env: - REPORT_DATE: ${{ steps.get_date.outputs.REPORT_DATE }} + REPORT_DATE: ${{ env.REPORT_DATE }} + REPORT_FILE: "./reports/$(${{ env.REPORT_DATE }})-Report.txt" with: - args: push --notify --report "./reports/$REPORT_DATE-Report.txt" + args: push --notify --report ${{ env.REPORT_FILE }} config_file: 'dnsconfig.js' creds_file: 'creds.example.json'