Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aarz-snl authored Dec 14, 2023
1 parent 433fb86 commit 402fde5
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ on:
push:
branches:
- main
- 'release-*'
- update-workflows
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*' # match basic semver tags
pull_request:
Expand Down Expand Up @@ -60,24 +58,14 @@ jobs:
uses: actions/checkout@v4

- name: Semgrep Scan
continue-on-error: true
run: |
semgrep --config "p/r2c" .
test:
runs-on: ubuntu-latest
steps:
- name: Tests
run: |
DEFAULT_IF="$(route | grep '^default' | grep -o '[^ ]*$')"
EXT_IP="$(/sbin/ifconfig "$DEFAULT_IF" | awk -F ' *|:' '/inet /{print $3}')"
echo "External IP: $EXT_IP"
FQDN="$(hostname -f)"
echo "FQDN: $FQDN"
release:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
needs: [lint, test, semgrep-scan]
needs: [lint, semgrep-scan]
steps:
- name: Checkout
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
Expand Down

0 comments on commit 402fde5

Please sign in to comment.