invalid multibyte char (US-ASCII) #72
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update the Profile JSON | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
my-job: | |
name: Update profile.json in the repository | |
runs-on: ubuntu-latest | |
env: | |
CHEF_LICENSE: accept-silent | |
steps: | |
- name: add needed packages | |
run: sudo apt-get install -y jq | |
- name: Check out repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.head_ref }} | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '2.7' | |
- run: bundle install | |
- name: Regenerate current `profile.json` | |
run: | | |
bundle exec inspec json . | jq . > profile.json | |
- name: Update profile.json in the repository | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_user_name: GitHub Actions | |
commit_user_email: [email protected] | |
commit_message: 'Updating profile.json in the repository' |