CI: bump all to @v3 actions from Calamares

- prep for the nightlies (only openSUSE affected)
- notifications (slightly more secure)
- fix unlabeling issues on close
This commit is contained in:
Adriaan de Groot 2021-06-08 15:58:29 +02:00
parent 7019b6d663
commit d75439e711
5 changed files with 21 additions and 21 deletions

View File

@ -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

View File

@ -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 }}

View File

@ -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 }}

View File

@ -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 }}"

View File

@ -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 }}