Skip to content

Commit

Permalink
chore: use GH runners' yq installation
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdcordeiro committed Sep 7, 2023
1 parent 5fd9dd6 commit 4ff4725
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 28 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/Announcements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:
types: [published, updated]

env:
YQ_VERSION: "v4.32.2"
YQ_BINARY: yq_linux_amd64
NAME: ${{ github.event_name == 'release' && github.event.release.name || github.event.registry_package.name }}

jobs:
Expand All @@ -22,9 +20,6 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Install requirements
run: ./src/notifications/requirements.sh

- name: Get image name
id: get-image-name
run: |
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/Documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,8 @@ jobs:
ECR_CREDS_PSW: ${{ env.IS_PROD == 'true' && secrets.ECR_CREDS_PSW || secrets.ECR_CREDS_PSW_DEV }}
ECR_REGISTRY_ID: ${{ env.IS_PROD == 'true' && secrets.ECR_REGISTRY_ID || secrets.ECR_REGISTRY_ID_DEV }}
DOCKER_HUB_NAMESPACE: ${{ env.IS_PROD == 'true' && 'docker.io/ubuntu' || secrets.DOCKER_HUB_NAMESPACE_DEV }}
YQ_VERSION: "v4.32.2"
YQ_BINARY: yq_linux_amd64
run: |
set -ex
./src/notifications/requirements.sh
./src/docs/publish_docs.sh "${{ needs.validate-documentation-request.outputs.oci-img-name }}" "${{ steps.generate-documentation.outputs.name_doc_file }}" "${{ steps.generate-documentation.outputs.image_doc_folder }}"
notify:
Expand All @@ -146,9 +143,6 @@ jobs:
with:
python-version: '3.x'

- name: Install requirements
run: ./src/notifications/requirements.sh

- name: Summarize workflow failure message
id: get-summary
run: |
Expand Down
9 changes: 0 additions & 9 deletions .github/workflows/Image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ on:
default: "default-id"

env:
YQ_VERSION: "v4.32.2"
YQ_BINARY: yq_linux_amd64
VULNERABILITY_REPORT_SUFFIX: ".vulnerability-report.json"

jobs:
Expand Down Expand Up @@ -144,10 +142,6 @@ jobs:
run: |
if [ -z ${{ matrix.dockerfile-build }} ]
then
wget https://github.com/mikefarah/yq/releases/download/${{ env.YQ_VERSION }}/${{ env.YQ_BINARY }}
sudo mv ${{ env.YQ_BINARY }} /usr/bin/yq
sudo chmod +x /usr/bin/yq
rock_name=`cat rockcraft.y*ml | yq -r .name`
if [[ "${{ matrix.path }}" != *"${rock_name}"* ]]
then
Expand Down Expand Up @@ -650,9 +644,6 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install requirements
run: ./src/notifications/requirements.sh

- name: Summarize workflow failure message
id: get-summary
Expand Down
8 changes: 0 additions & 8 deletions src/notifications/requirements.sh

This file was deleted.

0 comments on commit 4ff4725

Please sign in to comment.