release - Bump multiple actions (#4871)
Summary: This diff bumps `actions/checkout@v3.5.3`, `actions/setup-node@v3.6.0`, `actions/upload-artifact@v3.1.2`, `nick-fields/retry@v2.8.3` and `JasonEtco/create-an-issue@v2.9.1` ### Ref.: - `actions/checkout@v3.5.3` changelog: https://github.com/actions/checkout/releases/tag/v3.5.3 - `actions/setup-node@v3.6.0` changelog: https://github.com/actions/setup-node/releases/tag/v3.6.0 - `actions/upload-artifact@v3.1.2` changelog: https://github.com/actions/upload-artifact/releases/tag/v3.1.2 - `nick-fields/retry@v2.8.3` changelog: https://github.com/nick-fields/retry/releases/tag/v2.8.3 - `JasonEtco/create-an-issue@v2.9.1` changelog: https://github.com/JasonEtco/create-an-issue/releases/tag/v2.9.1 ## Changelog: [GENERAL] [SECURITY] - [Actions] `release` - Bump `actions/`- `checkout@v3.5.3`, `setup-node@v3.6.0`, `upload-artifact@v3.1.2`, & `nick-fields/retry@v2.8.3` and `JasonEtco/create-an-issue@v2.9.1` Pull Request resolved: https://github.com/facebook/flipper/pull/4871 Test Plan: - Workflow should run and work as usual. Reviewed By: aigoncharov Differential Revision: D47756366 Pulled By: passy fbshipit-source-id: 667b8174bdf4ef8193b95a83e068a6ad13c50c35
This commit is contained in:
committed by
Facebook GitHub Bot
parent
4748aa0a84
commit
a8df43a987
45
.github/workflows/release.yml
vendored
45
.github/workflows/release.yml
vendored
@@ -1,4 +1,5 @@
|
|||||||
name: Release
|
name: Release
|
||||||
|
# This action runs on push to 'main' and below specified paths
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
@@ -11,12 +12,13 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
tag: ${{ steps.tag-version-commit.outputs.tag }}
|
tag: ${{ steps.tag-version-commit.outputs.tag }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: passy/extract-version-commit@v1.0.0
|
- uses: passy/extract-version-commit@v1.0.0
|
||||||
id: extract-version-commit
|
id: extract-version-commit
|
||||||
with:
|
with:
|
||||||
version_regex: '^Flipper Release: v([0-9]+\.[0-9]+\.[0-9]+)(?:\n|$)'
|
version_regex: '^Flipper Release: v([0-9]+\.[0-9]+\.[0-9]+)(?:\n|$)'
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3.5.3
|
||||||
if: ${{ steps.extract-version-commit.outputs.commit != ''}}
|
if: ${{ steps.extract-version-commit.outputs.commit != ''}}
|
||||||
with:
|
with:
|
||||||
ref: ${{ steps.extract-version-commit.outputs.commit }}
|
ref: ${{ steps.extract-version-commit.outputs.commit }}
|
||||||
@@ -51,26 +53,26 @@ jobs:
|
|||||||
desktop-directory: ./desktop
|
desktop-directory: ./desktop
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3.5.3
|
||||||
with:
|
with:
|
||||||
ref: ${{ needs.release.outputs.tag }}
|
ref: ${{ needs.release.outputs.tag }}
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v3.6.0
|
||||||
with:
|
with:
|
||||||
node-version: '18.x'
|
node-version: '18.x'
|
||||||
- name: Install
|
- name: Install
|
||||||
uses: nick-invision/retry@v2.6.0
|
uses: nick-fields/retry@v2.8.3
|
||||||
with:
|
with:
|
||||||
timeout_minutes: 10
|
timeout_minutes: 10
|
||||||
max_attempts: 3
|
max_attempts: 3
|
||||||
command: cd ${{env.desktop-directory}} && yarn
|
command: cd ${{env.desktop-directory}} && yarn
|
||||||
- name: Build
|
- name: Build
|
||||||
uses: nick-invision/retry@v2.6.0
|
uses: nick-fields/retry@v2.8.3
|
||||||
with:
|
with:
|
||||||
timeout_minutes: 30
|
timeout_minutes: 30
|
||||||
max_attempts: 3
|
max_attempts: 3
|
||||||
command: cd ${{env.desktop-directory}} && yarn build --mac --mac-dmg
|
command: cd ${{env.desktop-directory}} && yarn build --mac --mac-dmg
|
||||||
- name: Upload
|
- name: Upload
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v3.1.2
|
||||||
with:
|
with:
|
||||||
name: 'Flipper-mac.dmg'
|
name: 'Flipper-mac.dmg'
|
||||||
path: 'dist/Flipper-mac.dmg'
|
path: 'dist/Flipper-mac.dmg'
|
||||||
@@ -83,26 +85,26 @@ jobs:
|
|||||||
desktop-directory: ./desktop
|
desktop-directory: ./desktop
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3.5.3
|
||||||
with:
|
with:
|
||||||
ref: ${{ needs.release.outputs.tag }}
|
ref: ${{ needs.release.outputs.tag }}
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v3.6.0
|
||||||
with:
|
with:
|
||||||
node-version: '18.x'
|
node-version: '18.x'
|
||||||
- name: Install
|
- name: Install
|
||||||
uses: nick-invision/retry@v2.6.0
|
uses: nick-fields/retry@v2.8.3
|
||||||
with:
|
with:
|
||||||
timeout_minutes: 10
|
timeout_minutes: 10
|
||||||
max_attempts: 3
|
max_attempts: 3
|
||||||
command: cd ${{env.desktop-directory}} && yarn
|
command: cd ${{env.desktop-directory}} && yarn
|
||||||
- name: Build
|
- name: Build
|
||||||
uses: nick-invision/retry@v2.6.0
|
uses: nick-fields/retry@v2.8.3
|
||||||
with:
|
with:
|
||||||
timeout_minutes: 30
|
timeout_minutes: 30
|
||||||
max_attempts: 3
|
max_attempts: 3
|
||||||
command: cd ${{env.desktop-directory}} && yarn build --linux
|
command: cd ${{env.desktop-directory}} && yarn build --linux
|
||||||
- name: Upload Linux
|
- name: Upload Linux
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v3.1.2
|
||||||
with:
|
with:
|
||||||
name: 'Flipper-linux.zip'
|
name: 'Flipper-linux.zip'
|
||||||
path: 'dist/Flipper-linux.zip'
|
path: 'dist/Flipper-linux.zip'
|
||||||
@@ -115,28 +117,28 @@ jobs:
|
|||||||
desktop-directory: ./desktop
|
desktop-directory: ./desktop
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3.5.3
|
||||||
with:
|
with:
|
||||||
ref: ${{ needs.release.outputs.tag }}
|
ref: ${{ needs.release.outputs.tag }}
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v3.6.0
|
||||||
with:
|
with:
|
||||||
node-version: '18.x'
|
node-version: '18.x'
|
||||||
- name: Install
|
- name: Install
|
||||||
uses: nick-invision/retry@v2.6.0
|
uses: nick-fields/retry@v2.8.3
|
||||||
with:
|
with:
|
||||||
timeout_minutes: 10
|
timeout_minutes: 10
|
||||||
max_attempts: 3
|
max_attempts: 3
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
command: cd ${{env.desktop-directory}}; yarn
|
command: cd ${{env.desktop-directory}}; yarn
|
||||||
- name: Build
|
- name: Build
|
||||||
uses: nick-invision/retry@v2.6.0
|
uses: nick-fields/retry@v2.8.3
|
||||||
with:
|
with:
|
||||||
timeout_minutes: 30
|
timeout_minutes: 30
|
||||||
max_attempts: 3
|
max_attempts: 3
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
command: cd ${{env.desktop-directory}}; yarn build --win
|
command: cd ${{env.desktop-directory}}; yarn build --win
|
||||||
- name: Upload Windows
|
- name: Upload Windows
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v3.1.2
|
||||||
with:
|
with:
|
||||||
name: 'Flipper-win.zip'
|
name: 'Flipper-win.zip'
|
||||||
path: 'dist/Flipper-win.zip'
|
path: 'dist/Flipper-win.zip'
|
||||||
@@ -149,10 +151,10 @@ jobs:
|
|||||||
desktop-directory: ./desktop
|
desktop-directory: ./desktop
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3.5.3
|
||||||
with:
|
with:
|
||||||
ref: ${{ needs.release.outputs.tag }}
|
ref: ${{ needs.release.outputs.tag }}
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v3.6.0
|
||||||
with:
|
with:
|
||||||
node-version: '18.x'
|
node-version: '18.x'
|
||||||
- name: Install
|
- name: Install
|
||||||
@@ -166,7 +168,7 @@ jobs:
|
|||||||
- name: List dist artifacts
|
- name: List dist artifacts
|
||||||
run: ls -l dist/
|
run: ls -l dist/
|
||||||
- name: Upload flipper-server
|
- name: Upload flipper-server
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3.1.2
|
||||||
with:
|
with:
|
||||||
name: 'flipper-server.tgz'
|
name: 'flipper-server.tgz'
|
||||||
path: 'dist/flipper-server.tgz'
|
path: 'dist/flipper-server.tgz'
|
||||||
@@ -181,7 +183,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3.5.3
|
||||||
with:
|
with:
|
||||||
ref: ${{ needs.release.outputs.tag }}
|
ref: ${{ needs.release.outputs.tag }}
|
||||||
- name: Download Mac
|
- name: Download Mac
|
||||||
@@ -226,7 +228,7 @@ jobs:
|
|||||||
yarn publish
|
yarn publish
|
||||||
- name: Open issue on failure
|
- name: Open issue on failure
|
||||||
if: failure()
|
if: failure()
|
||||||
uses: JasonEtco/create-an-issue@v2.4.0
|
uses: JasonEtco/create-an-issue@v2.9.1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
REPOSITORY: ${{ github.repository }}
|
REPOSITORY: ${{ github.repository }}
|
||||||
@@ -234,6 +236,7 @@ jobs:
|
|||||||
WORKFLOW_NAME: "Publish"
|
WORKFLOW_NAME: "Publish"
|
||||||
with:
|
with:
|
||||||
filename: .github/action-failure-template.md
|
filename: .github/action-failure-template.md
|
||||||
|
|
||||||
dispatch:
|
dispatch:
|
||||||
needs:
|
needs:
|
||||||
- release
|
- release
|
||||||
|
|||||||
Reference in New Issue
Block a user