From d75439e7119e7c5b04fb2dba2a00a5dfd26a2fea Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 8 Jun 2021 15:58:29 +0200 Subject: [PATCH] CI: bump all to @v3 actions from Calamares - prep for the nightlies (only openSUSE affected) - notifications (slightly more secure) - fix unlabeling issues on close --- .github/workflows/issues.yml | 6 +++--- .github/workflows/nightly-debian.yml | 8 ++++---- .github/workflows/nightly-neon.yml | 8 ++++---- .github/workflows/nightly-opensuse.yml | 12 ++++++------ .github/workflows/push.yml | 8 ++++---- 5 files changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/workflows/issues.yml b/.github/workflows/issues.yml index b03522103..155cb6a17 100644 --- a/.github/workflows/issues.yml +++ b/.github/workflows/issues.yml @@ -10,14 +10,14 @@ jobs: steps: - name: "notify: new" if: github.event.issue.state == 'open' - uses: calamares/actions/matrix-notify@v2 + uses: calamares/actions/matrix-notify@v3 with: token: ${{ secrets.MATRIX_TOKEN }} room: ${{ secrets.MATRIX_ROOM }} message: "OPENED ${{ github.event.issue.html_url }} by ${{ github.actor }} ${{ github.event.issue.title }}" - name: "notify: closed" if: github.event.issue.state != 'open' - uses: calamares/actions/matrix-notify@v2 + uses: calamares/actions/matrix-notify@v3 with: token: ${{ secrets.MATRIX_TOKEN }} room: ${{ secrets.MATRIX_ROOM }} @@ -28,5 +28,5 @@ jobs: curl -X DELETE \ -H 'Accept: application/vnd.github.v3+json' \ -H 'Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \ - https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.id }}/labels/hacking%3A+in-progress + https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/labels/hacking%3A+in-progress diff --git a/.github/workflows/nightly-debian.yml b/.github/workflows/nightly-debian.yml index 02b5fe386..d4dfe1621 100644 --- a/.github/workflows/nightly-debian.yml +++ b/.github/workflows/nightly-debian.yml @@ -22,22 +22,22 @@ jobs: options: --tmpfs /build:rw --user 0:0 steps: - name: "prepare env" - uses: calamares/actions/prepare-debian@v2 + uses: calamares/actions/prepare-debian@v3 - name: "prepare source" uses: actions/checkout@v2 - name: "build" id: build - uses: calamares/actions/generic-build@v2 + uses: calamares/actions/generic-build@v3 - name: "notify: ok" if: ${{ success() && github.repository == 'calamares/calamares' }} - uses: calamares/actions/matrix-notify@v2 + uses: calamares/actions/matrix-notify@v3 with: token: ${{ secrets.MATRIX_TOKEN }} room: ${{ secrets.MATRIX_ROOM }} message: "OK ${{ github.workflow }} in ${{ github.repository }} ${{ steps.build.outputs.git-summary }}" - name: "notify: fail" if: ${{ failure() && github.repository == 'calamares/calamares' }} - uses: calamares/actions/matrix-notify@v2 + uses: calamares/actions/matrix-notify@v3 with: token: ${{ secrets.MATRIX_TOKEN }} room: ${{ secrets.MATRIX_ROOM }} diff --git a/.github/workflows/nightly-neon.yml b/.github/workflows/nightly-neon.yml index 2c964bedf..64b745e45 100644 --- a/.github/workflows/nightly-neon.yml +++ b/.github/workflows/nightly-neon.yml @@ -22,12 +22,12 @@ jobs: options: --tmpfs /build:rw --user 0:0 steps: - name: "prepare env" - uses: calamares/actions/prepare-neon@v2 + uses: calamares/actions/prepare-neon@v3 - name: "prepare source" uses: actions/checkout@v2 - name: "build" id: build - uses: calamares/actions/generic-build@v2 + uses: calamares/actions/generic-build@v3 - name: "Calamares: archive" working-directory: ${{ env.BUILDDIR }} run: | @@ -42,14 +42,14 @@ jobs: retention-days: 3 - name: "notify: ok" if: ${{ success() && github.repository == 'calamares/calamares' }} - uses: calamares/actions/matrix-notify@v2 + uses: calamares/actions/matrix-notify@v3 with: token: ${{ secrets.MATRIX_TOKEN }} room: ${{ secrets.MATRIX_ROOM }} message: "OK ${{ github.workflow }} in ${{ github.repository }} ${{ steps.build.outputs.git-summary }}" - name: "notify: fail" if: ${{ failure() && github.repository == 'calamares/calamares' }} - uses: calamares/actions/matrix-notify@v2 + uses: calamares/actions/matrix-notify@v3 with: token: ${{ secrets.MATRIX_TOKEN }} room: ${{ secrets.MATRIX_ROOM }} diff --git a/.github/workflows/nightly-opensuse.yml b/.github/workflows/nightly-opensuse.yml index b9d13cf0a..0eab97bc4 100644 --- a/.github/workflows/nightly-opensuse.yml +++ b/.github/workflows/nightly-opensuse.yml @@ -22,24 +22,24 @@ jobs: options: --tmpfs /build:rw --user 0:0 steps: - name: "prepare env" - uses: calamares/actions/prepare-opensuse@0d294e557d4d2f0fa179eff3ac97b45aaffe53cf + uses: calamares/actions/prepare-opensuse@v3 - name: "prepare source" uses: actions/checkout@v2 - name: "build" id: build - uses: calamares/actions/generic-build@v2 + uses: calamares/actions/generic-build@v3 - name: "notify: ok" if: ${{ success() && github.repository == 'calamares/calamares' }} - uses: calamares/actions/matrix-notify@0d294e557d4d2f0fa179eff3ac97b45aaffe53cf + uses: calamares/actions/matrix-notify@v3 with: token: ${{ secrets.MATRIX_TOKEN }} room: ${{ secrets.MATRIX_ROOM }} message: | - OK" ; ls -la ; echo "${{ github.workflow }} in ${{ github.repository }} ${{ steps.build.outputs.git-summary }}" + OK ${{ github.workflow }} in ${{ github.repository }} ${{ steps.build.outputs.git-summary }}" - name: "notify: fail" if: ${{ failure() && github.repository == 'calamares/calamares' }} - uses: calamares/actions/matrix-notify@0d294e557d4d2f0fa179eff3ac97b45aaffe53cf + uses: calamares/actions/matrix-notify@v3 with: token: ${{ secrets.MATRIX_TOKEN }} room: ${{ secrets.MATRIX_ROOM }} - message: "FAIL\" ; ls -la ; echo \" ${{ github.workflow }} in ${{ github.repository }} ${{ steps.build.outputs.git-summary }}" + message: "FAIL ${{ github.workflow }} in ${{ github.repository }} ${{ steps.build.outputs.git-summary }}" diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 8d67f1865..cc7bb7223 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -28,15 +28,15 @@ jobs: options: --tmpfs /build:rw --user 0:0 steps: - name: "prepare env" - uses: calamares/actions/prepare-neon@v2 + uses: calamares/actions/prepare-neon@v3 - name: "prepare source" uses: actions/checkout@v2 - name: "build" id: build - uses: calamares/actions/generic-build@v2 + uses: calamares/actions/generic-build@v3 - name: "notify: ok" if: ${{ success() && github.repository == 'calamares/calamares' }} - uses: calamares/actions/matrix-notify@v2 + uses: calamares/actions/matrix-notify@v3 with: token: ${{ secrets.MATRIX_TOKEN }} room: ${{ secrets.MATRIX_ROOM }} @@ -45,7 +45,7 @@ jobs: .. ${{ steps.build.outputs.git-summary }} - name: "notify: fail" if: ${{ failure() && github.repository == 'calamares/calamares' }} - uses: calamares/actions/matrix-notify@v2 + uses: calamares/actions/matrix-notify@v3 with: token: ${{ secrets.MATRIX_TOKEN }} room: ${{ secrets.MATRIX_ROOM }}