Skip to content

Commit

Permalink
Update specimin_evaluation_CI.yml
Browse files Browse the repository at this point in the history
adding new branch
  • Loading branch information
NiharikaJamble authored Jul 31, 2024
1 parent b7e3b34 commit b094120
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions .github/workflows/specimin_evaluation_CI.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
name: specimin_evaluation_CI
name: specimin_evaluation_CI

on:
push:
branches:
- main
- test_CI_decrease_prcnt
pull_request:
branches:
- main
- test_CI_decrease_prcnt

jobs:
specimin-evaluation:
runs-on: ubuntu-latest

steps:

- name: Checkout repository
uses: actions/checkout@v2
with:
Expand All @@ -32,7 +33,6 @@ jobs:
echo "Listing files in /home/runner/work/specimin/specimin"
ls -la /home/runner/work/specimin/specimin
- name: Set up Python
uses: actions/setup-python@v2
with:
Expand All @@ -50,7 +50,7 @@ jobs:

- name: Install dependencies
run: |
set -ex # Exit immediately if a command exits with a non-zero status and print commands as they are executed
set -ex
python -m pip install --upgrade pip
- name: Display CSV File Contents loaded in working environment
Expand All @@ -65,23 +65,23 @@ jobs:
- name: Download git-clone-related script
run: |
set -ex
curl -L -o git-clone-related https://raw.githubusercontent.com/plume-lib/git-scripts/main/git-clone-related
chmod +x git-clone-related
set -ex
curl -L -o git-clone-related https://raw.githubusercontent.com/plume-lib/git-scripts/main/git-clone-related
chmod +x git-clone-related
- name: Clone ASHE Project using git-clone-related
run: |
set -ex
git clone https://github.com/njit-jerse/ASHE_Automated-Software-Hardening-for-Entrypoints ASHE
./git-clone-related njit-jerse ASHE_Automated-Software-Hardening-for-Entrypoints ASHE
set -ex
git clone https://github.com/njit-jerse/ASHE_Automated-Software-Hardening-for-Entrypoints ASHE
./git-clone-related njit-jerse ASHE_Automated-Software-Hardening-for-Entrypoints ASHE
- name: Create ASHE Clone SPACE Directory
run: |
set -ex
mkdir -p $(pwd)/ASHE/CI_REPO_CLONE_SPACE
chmod 777 $(pwd)/ASHE/CI_REPO_CLONE_SPACE
ls -ld $(pwd)/ASHE/CI_REPO_CLONE_SPACE
set -ex
mkdir -p $(pwd)/ASHE/CI_REPO_CLONE_SPACE
chmod 777 $(pwd)/ASHE/CI_REPO_CLONE_SPACE
ls -ld $(pwd)/ASHE/CI_REPO_CLONE_SPACE
- name: Verify example.properties exists
run: |
set -ex
Expand Down Expand Up @@ -113,9 +113,7 @@ jobs:
run: |
set -ex
chmod +w ASHE/src/main/resources/config.properties
# Update the specimin.tool.path key with the new value
sed -i 's|^specimin.tool.path=.*|specimin.tool.path='$(pwd)'|' ASHE/src/main/resources/config.properties
# Display the updated config.properties file for verification
cat ASHE/src/main/resources/config.properties
- name: Display updated config.properties
Expand Down Expand Up @@ -179,7 +177,7 @@ jobs:
sudo apt-get install -y jq curl
- name: Update Evaluation Accuracy Secret
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && steps.read_and_update.outputs.update_needed == 'true'
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/test_CI_decrease_prcnt') && steps.read_and_update.outputs.update_needed == 'true'
run: |
set -ex
new_accuracy=${{ steps.read_and_update.outputs.new_accuracy }}
Expand Down

0 comments on commit b094120

Please sign in to comment.