Skip to content

Commit

Permalink
Fix bug in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alistairjcbrown committed Jun 21, 2023
1 parent f84f4a4 commit c0e7ece
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/password-rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ on:
- cron: '0 3 * * *' # every morning at 3am UTC

jobs:
test:
update:
name: Get latest password rules
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -21,16 +22,15 @@ jobs:
- name: Check for changes
id: changes
run: |
local hasChanged
local filesChanged=$(sh ./scripts/check-for-changes.sh)
filesChanged=$(sh ./scripts/check-for-changes.sh)
if [ -z "$filesChanged" ]; then hasChanged="false"; else hasChanged="true"; fi
echo "hasChanged=$hasChanged" >> "$GITHUB_OUTPUT"
- name: Get current date
id: date
run: |
echo "currentDate=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT"
- name: Create PR for updated rules
if: ${{ steps.changes.outputs.hasChanged == "true" }}
if: ${{ steps.changes.outputs.hasChanged == 'true' }}
uses: peter-evans/create-pull-request@88bf0de51c7487d91e1abbb4899332e602c58bbf
with:
add-paths: |
Expand Down

0 comments on commit c0e7ece

Please sign in to comment.