Skip to content

Commit

Permalink
Merge pull request #7 from asfadmin/sg/simplify-action
Browse files Browse the repository at this point in the history
Sg/simplify-action
  • Loading branch information
segallagher authored Jun 13, 2024
2 parents c9c7339 + 8b063d2 commit 5072ffa
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 43 deletions.
28 changes: 1 addition & 27 deletions .github/workflows/format-libraries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,50 +10,24 @@ env:
COMMIT_MESSAGE: "chore: format libraries"

jobs:
check-message:
update-lists:
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
get-modified-libraries:
needs: check-message
runs-on: ubuntu-latest
steps:
- name: Checkout Code
if: needs.check-message.outputs.continue == 'true'
id: checkout
uses: actions/checkout@v4

- name: webfactory/ssh-agent
uses: webfactory/ssh-agent@v0.9.0
with:
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
15 changes: 0 additions & 15 deletions flowblock_source_files/cool/coolifier.py

This file was deleted.

1 change: 0 additions & 1 deletion flowblock_source_files/cool/flowblock_list.txt

This file was deleted.

0 comments on commit 5072ffa

Please sign in to comment.