From 1d143fc6870ec447664010cdf80e9a5e685408ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Fern=C3=A1ndez?= Date: Mon, 1 Nov 2021 15:42:39 +0100 Subject: [PATCH] Commit *.sh files as executables so chmod is not necessary at runtime --- .github/workflows/maintenance.yml | 14 ++------------ .../maintenance/delete_ghcr_dangling_images.sh | 0 .github/workflows/maintenance/delete_workflows.sh | 0 3 files changed, 2 insertions(+), 12 deletions(-) mode change 100644 => 100755 .github/workflows/maintenance/delete_ghcr_dangling_images.sh mode change 100644 => 100755 .github/workflows/maintenance/delete_workflows.sh diff --git a/.github/workflows/maintenance.yml b/.github/workflows/maintenance.yml index 228b5a6..47ea7e3 100644 --- a/.github/workflows/maintenance.yml +++ b/.github/workflows/maintenance.yml @@ -74,14 +74,9 @@ jobs: - name: Clone repository - uses: actions/checkout@v2.3.4 - # The 'echo' command masks the environment variable - - name: Prepare environment - run: chmod +x delete_workflows.sh && echo "::add-mask::${GITHUB_TOKEN}" - working-directory: ./maintenance - - name: Run deletion script 🗑 run: ./delete_workflows.sh ${{ matrix.repo }} - working-directory: ./maintenance + working-directory: ./.github/workflows/maintenance env: GITHUB_TOKEN: ${{ secrets.JF_BOT_TOKEN }} @@ -103,13 +98,8 @@ jobs: - name: Clone repository - uses: actions/checkout@v2.3.4 - # The 'echo' command masks the environment variable - - name: Prepare environment - run: chmod +x delete_ghcr_dangling_images.sh && echo "::add-mask::${GITHUB_TOKEN}" - working-directory: ./maintenance - - name: Run deletion script 🗑 run: ./delete_ghcr_dangling_images.sh ${{ matrix.container }} - working-directory: ./maintenance + working-directory: ./.github/workflows/maintenance env: GITHUB_TOKEN: ${{ secrets.JF_BOT_TOKEN }} diff --git a/.github/workflows/maintenance/delete_ghcr_dangling_images.sh b/.github/workflows/maintenance/delete_ghcr_dangling_images.sh old mode 100644 new mode 100755 diff --git a/.github/workflows/maintenance/delete_workflows.sh b/.github/workflows/maintenance/delete_workflows.sh old mode 100644 new mode 100755