Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: push checks were needed, vindication #8

Merged
merged 1 commit into from
Jun 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/format-libraries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,34 @@ env:
COMMIT_MESSAGE: "chore: format libraries"

jobs:
check-message:
runs-on: ubuntu-latest
outputs:
continue: ${{ steps.message.outputs.continue }}
steps:
- name: Checkout Code
id: checkout
uses: actions/checkout@v4

- name: Check Message
id: message
run: |
if [[ "${{ github.event.head_commit.message }}" == "${{ env.COMMIT_MESSAGE }}" ]]; then
echo "Stop action"
export CONTINUE='false'
else
echo "Continue with action"
export CONTINUE='true'
fi
echo $CONTINUE
echo "continue=$CONTINUE" >> $GITHUB_OUTPUT

update-lists:
needs: check-message
runs-on: ubuntu-latest
steps:
- name: Checkout Code
if: needs.check-message.outputs.continue == 'true'
id: checkout
uses: actions/checkout@v4

Expand All @@ -23,11 +47,13 @@ jobs:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Format Libraries
if: needs.check-message.outputs.continue == 'true'
id: format-libraries
run: |
bash ./create_library_lists.sh

- name: Commit
if: needs.check-message.outputs.continue == 'true'
id: commit
run: |
echo Git config
Expand Down