Skip to content

Commit

Permalink
Update dnscontrol.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jimbrig authored Feb 26, 2024
1 parent 9280c81 commit cc4c13e
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/dnscontrol.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,28 +53,32 @@ jobs:
dnscontrol-push:
runs-on: ubuntu-latest
needs: dnscontrol-preview
permissions:
contents: write

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Get Date
id: get_date
run: echo "::set-output name=report_date::$(date +'%Y-%m-%d')"
run: echo "REPORT_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT

- name: Push
id: dnscontrol_push
uses: is-cool-me/[email protected]
env:
REPORT_DATE: ${{ steps.get_date.outputs.REPORT_DATE }}
with:
args: push --notify --report "./reports/${{ steps.get_date.outputs.report_date }}-Report.txt"
args: push --notify --report "./reports/$REPORT_DATE-Report.txt"
config_file: 'dnsconfig.js'
creds_file: 'creds.example.json'

- name: Commit and Push Changes
id: git_commit_push
uses: actions-js/push@master
uses: stefanzweifel/git-auto-commit-action@v5
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
author_email: 'github-actions[bot]@users.noreply.github.com'
author_name: 'github-actions[bot]'
message: 'chore: github action dnscontrol - ${{ steps.get_date.outputs.report_date }}'
commit_user_email: 'github-actions[bot]@users.noreply.github.com'
commit_user_name: 'github-actions[bot]'
commit_author: '<Jimmy Briggs <[email protected]>'
commit_message: 'chore: github action dnscontrol - $REPORT_DATE'

0 comments on commit cc4c13e

Please sign in to comment.