From bf29172dc37847f61abd62a0b88cdbb8fb332bdf Mon Sep 17 00:00:00 2001 From: Luke Nelson Date: Mon, 13 Nov 2023 17:06:15 +0000 Subject: [PATCH 01/19] start the action and check for releases --- .github/workflows/check-release.yml | 43 +++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/check-release.yml diff --git a/.github/workflows/check-release.yml b/.github/workflows/check-release.yml new file mode 100644 index 0000000..f7e65f1 --- /dev/null +++ b/.github/workflows/check-release.yml @@ -0,0 +1,43 @@ +name: Check for firebase-tools releases + +on: + schedule: + - cron: "0 0 * * *" + +jobs: + check-releases: + runs-on: ubuntu-latest + outputs: + # A semver comparison result - We are the base, firebase-tools is the compare-to + comparison: ${{ steps.compare_versions.outputs.comparison-result }} + steps: + - name: Check our latest release + uses: octokit/request-action@v2.x + id: get_our_release + with: + route: GET /repos/w9jds/firebase-action/releases/latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Check latest firebase-tools release + uses: octokit/request-action@v2.x + id: get_their_release + with: + route: GET /repos/firebase/firebase-tools/releases/latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - uses: madhead/semver-utils@latest + id: compare_versions + with: + # A version to work with + version: "${{ fromJSON(steps.get_our_release.outputs.data).tag_name }}" + # A version to compare against + compare-to: "${{ fromJSON(steps.get_their_release.outputs.data).tag_name }}" + + - name: Print our release version + run: echo "Our latest release is ${{ fromJSON(steps.get_our_release.outputs.data).tag_name }}" + - name: Print their release version + run: echo "Their latest release is ${{ fromJSON(steps.get_their_release.outputs.data).tag_name }}" + - name: Print the result + run: echo "${{ fromJSON(steps.get_our_release.outputs.data).tag_name }} ${{ steps.compare_versions.outputs.comparison-result }} ${{ fromJSON(steps.get_their_release.outputs.data).tag_name }}" From fea8fcfe1a0b198ed879cafe82548a4f43e018e2 Mon Sep 17 00:00:00 2001 From: Luke Nelson Date: Mon, 13 Nov 2023 18:36:59 +0000 Subject: [PATCH 02/19] Start making the code change --- .github/workflows/check-release.yml | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.github/workflows/check-release.yml b/.github/workflows/check-release.yml index f7e65f1..0d9b0d3 100644 --- a/.github/workflows/check-release.yml +++ b/.github/workflows/check-release.yml @@ -10,6 +10,8 @@ jobs: outputs: # A semver comparison result - We are the base, firebase-tools is the compare-to comparison: ${{ steps.compare_versions.outputs.comparison-result }} + firebase-actions-release: ${{ fromJSON(steps.get_our_release.outputs.data).tag_name }} + firebase-tools-release: ${{ fromJSON(steps.get_their_release.outputs.data).tag_name }} steps: - name: Check our latest release uses: octokit/request-action@v2.x @@ -41,3 +43,32 @@ jobs: run: echo "Their latest release is ${{ fromJSON(steps.get_their_release.outputs.data).tag_name }}" - name: Print the result run: echo "${{ fromJSON(steps.get_our_release.outputs.data).tag_name }} ${{ steps.compare_versions.outputs.comparison-result }} ${{ fromJSON(steps.get_their_release.outputs.data).tag_name }}" + + bump-version: + needs: check-releases + permissions: + contents: write + runs-on: ubuntu-latest + if: ${{ needs.check-releases.outputs.comparison == '<' }} + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Bump version + run: | + OLD_VERSION=${{ needs.check-releases.outputs.firebase-actions-release }} # get old version + NEW_VERSION=${{ needs.check-releases.outputs.firebase-tools-release }} # get new version + OLD_VERSION=${OLD_VERSION#v} && NEW_VERSION=${NEW_VERSION#v} # remove the 'v' from the version strings + sed -i "s|${OLD_VERSION}|${NEW_VERSION}|g" Dockerfile + sed -i "s|${OLD_VERSION}|${NEW_VERSION}|g" action.yaml + + # - name: print file contents for debug + # run: | + # cat Dockerfile + # cat action.yaml + + - name: Commit and push + uses: stefanzweifel/git-auto-commit-action@v5 + with: + tagging_message: "${{ needs.check-releases.outputs.firebase-tools-release }}" + commit_message: "Bump version to ${{ needs.check-releases.outputs.firebase-tools-release }}" From f966eccff7bbe36a00118a7dbfcc132f61b8c974 Mon Sep 17 00:00:00 2001 From: Luke Nelson Date: Tue, 14 Nov 2023 23:43:52 +0000 Subject: [PATCH 03/19] v12.9.0 --- Dockerfile | 4 ++-- action.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 03d3d41..37be66c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM node:16.16.0-buster -LABEL version="12.8.0" +LABEL version="12.9.0" LABEL repository="https://github.com/w9jds/firebase-action" LABEL homepage="https://github.com/w9jds/firebase-action" LABEL maintainer="Jeremy Shore " @@ -13,7 +13,7 @@ LABEL com.github.actions.color="gray-dark" RUN apt update && apt-get install --no-install-recommends -y jq openjdk-11-jre && rm -rf /var/lib/apt/lists/*; RUN npm i -g npm@8.10.0 && npm cache clean --force; -RUN npm i -g firebase-tools@12.8.0 && npm cache clean --force; +RUN npm i -g firebase-tools@12.9.0 && npm cache clean --force; COPY LICENSE README.md / COPY "entrypoint.sh" "/entrypoint.sh" diff --git a/action.yaml b/action.yaml index 22c141a..3f25038 100644 --- a/action.yaml +++ b/action.yaml @@ -12,4 +12,4 @@ outputs: runs: using: "docker" - image: "docker://w9jds/firebase-action:v12.8.0" + image: "docker://w9jds/firebase-action:v12.9.0" From 2b7747fb0b646a3475d5ce23d540d68655eba1f3 Mon Sep 17 00:00:00 2001 From: Luke Nelson Date: Wed, 15 Nov 2023 13:37:29 +0000 Subject: [PATCH 04/19] Add workflow_dispatch trigger --- .github/workflows/check-release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/check-release.yml b/.github/workflows/check-release.yml index 0d9b0d3..ad89e3f 100644 --- a/.github/workflows/check-release.yml +++ b/.github/workflows/check-release.yml @@ -1,6 +1,7 @@ name: Check for firebase-tools releases on: + workflow_dispatch: schedule: - cron: "0 0 * * *" From 6a1daf1659ba25d2cff7970439da2d1c8af5e582 Mon Sep 17 00:00:00 2001 From: Luke Nelson Date: Wed, 15 Nov 2023 13:40:31 +0000 Subject: [PATCH 05/19] fix multi-line command --- .github/workflows/check-release.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check-release.yml b/.github/workflows/check-release.yml index ad89e3f..fc669a8 100644 --- a/.github/workflows/check-release.yml +++ b/.github/workflows/check-release.yml @@ -57,11 +57,11 @@ jobs: - name: Bump version run: | - OLD_VERSION=${{ needs.check-releases.outputs.firebase-actions-release }} # get old version - NEW_VERSION=${{ needs.check-releases.outputs.firebase-tools-release }} # get new version - OLD_VERSION=${OLD_VERSION#v} && NEW_VERSION=${NEW_VERSION#v} # remove the 'v' from the version strings - sed -i "s|${OLD_VERSION}|${NEW_VERSION}|g" Dockerfile - sed -i "s|${OLD_VERSION}|${NEW_VERSION}|g" action.yaml + OLD_VERSION=${{ needs.check-releases.outputs.firebase-actions-release }} # get old version \ + NEW_VERSION=${{ needs.check-releases.outputs.firebase-tools-release }} # get new version \ + OLD_VERSION=${OLD_VERSION#v} && NEW_VERSION=${NEW_VERSION#v} # remove the 'v' from the version strings \ + sed -i "s|${OLD_VERSION}|${NEW_VERSION}|g" Dockerfile \ + sed -i "s|${OLD_VERSION}|${NEW_VERSION}|g" action.yaml \ # - name: print file contents for debug # run: | From fcb1ed0672a72c291999f2b229b49127c5bde1bd Mon Sep 17 00:00:00 2001 From: Luke Nelson Date: Wed, 15 Nov 2023 13:43:50 +0000 Subject: [PATCH 06/19] fix multi line command (again) --- .github/workflows/check-release.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/check-release.yml b/.github/workflows/check-release.yml index fc669a8..ed64cc0 100644 --- a/.github/workflows/check-release.yml +++ b/.github/workflows/check-release.yml @@ -56,17 +56,19 @@ jobs: uses: actions/checkout@v2 - name: Bump version + env: + OLD_VERSION: "${{ needs.check-releases.outputs.firebase-actions-release }}" + NEW_VERSION: "${{ needs.check-releases.outputs.firebase-tools-release }}" run: | - OLD_VERSION=${{ needs.check-releases.outputs.firebase-actions-release }} # get old version \ - NEW_VERSION=${{ needs.check-releases.outputs.firebase-tools-release }} # get new version \ - OLD_VERSION=${OLD_VERSION#v} && NEW_VERSION=${NEW_VERSION#v} # remove the 'v' from the version strings \ - sed -i "s|${OLD_VERSION}|${NEW_VERSION}|g" Dockerfile \ - sed -i "s|${OLD_VERSION}|${NEW_VERSION}|g" action.yaml \ + OLD_VERSION=${OLD_VERSION#v} \ + NEW_VERSION=${NEW_VERSION#v}\ + sed -i "s|${OLD_VERSION}|${NEW_VERSION}|g" Dockerfile \ + sed -i "s|${OLD_VERSION}|${NEW_VERSION}|g" action.yaml \ - # - name: print file contents for debug - # run: | - # cat Dockerfile - # cat action.yaml + - name: print file contents for debug + run: | + cat Dockerfile + cat action.yaml - name: Commit and push uses: stefanzweifel/git-auto-commit-action@v5 From 295a450d90a12485ea5e8276edb4c479eb82952a Mon Sep 17 00:00:00 2001 From: Luke Nelson Date: Wed, 15 Nov 2023 14:36:58 +0000 Subject: [PATCH 07/19] Replace version numebrs in separate step --- .github/workflows/check-release.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/check-release.yml b/.github/workflows/check-release.yml index ed64cc0..9507650 100644 --- a/.github/workflows/check-release.yml +++ b/.github/workflows/check-release.yml @@ -55,15 +55,20 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Bump version - env: - OLD_VERSION: "${{ needs.check-releases.outputs.firebase-actions-release }}" - NEW_VERSION: "${{ needs.check-releases.outputs.firebase-tools-release }}" + - name: Remove leading 'v' from version numbers run: | - OLD_VERSION=${OLD_VERSION#v} \ - NEW_VERSION=${NEW_VERSION#v}\ - sed -i "s|${OLD_VERSION}|${NEW_VERSION}|g" Dockerfile \ - sed -i "s|${OLD_VERSION}|${NEW_VERSION}|g" action.yaml \ + FIREBASE_ACTIONS_RELEASE=${{ needs.check-releases.outputs.firebase-actions-release }} + FIREBASE_TOOLS_RELEASE=${{ needs.check-releases.outputs.firebase-tools-release }} + echo "FIREBASE_ACTIONS_RELEASE=${FIREBASE_ACTIONS_RELEASE#v}" >> $GITHUB_ENV + echo "FIREBASE_TOOLS_RELEASE=${FIREBASE_TOOLS_RELEASE#v}" >> $GITHUB_ENV + + - name: Bump version + uses: jacobtomlinson/gha-find-replace@v3 + with: + find: "${{ env.FIREBASE_ACTIONS_RELEASE }}" + replace: "${{ env.FIREBASE_TOOLS_RELEASE }}" + include: "?(Dockerfile|action.yaml)" + regex: false - name: print file contents for debug run: | From 607c153967f9f7034a095902dd85ca69244b23d2 Mon Sep 17 00:00:00 2001 From: Luke Nelson Date: Wed, 15 Nov 2023 14:39:52 +0000 Subject: [PATCH 08/19] remove print debug --- .github/workflows/check-release.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/check-release.yml b/.github/workflows/check-release.yml index 9507650..f51236f 100644 --- a/.github/workflows/check-release.yml +++ b/.github/workflows/check-release.yml @@ -70,11 +70,6 @@ jobs: include: "?(Dockerfile|action.yaml)" regex: false - - name: print file contents for debug - run: | - cat Dockerfile - cat action.yaml - - name: Commit and push uses: stefanzweifel/git-auto-commit-action@v5 with: From fa6b7bc14f811525bbff816d6373c2829a05651b Mon Sep 17 00:00:00 2001 From: Luke Nelson Date: Wed, 15 Nov 2023 16:14:39 +0000 Subject: [PATCH 09/19] commit to master --- .github/workflows/check-release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-release.yml b/.github/workflows/check-release.yml index f51236f..4062cdc 100644 --- a/.github/workflows/check-release.yml +++ b/.github/workflows/check-release.yml @@ -53,7 +53,7 @@ jobs: if: ${{ needs.check-releases.outputs.comparison == '<' }} steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Remove leading 'v' from version numbers run: | @@ -73,5 +73,6 @@ jobs: - name: Commit and push uses: stefanzweifel/git-auto-commit-action@v5 with: + branch: master tagging_message: "${{ needs.check-releases.outputs.firebase-tools-release }}" commit_message: "Bump version to ${{ needs.check-releases.outputs.firebase-tools-release }}" From 451a3da946fb809d9bbf9d33b3791a142d2b765f Mon Sep 17 00:00:00 2001 From: Luke Nelson Date: Wed, 15 Nov 2023 17:26:12 +0000 Subject: [PATCH 10/19] manually commit and tag --- .github/workflows/check-release.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/check-release.yml b/.github/workflows/check-release.yml index 4062cdc..feb7600 100644 --- a/.github/workflows/check-release.yml +++ b/.github/workflows/check-release.yml @@ -70,9 +70,10 @@ jobs: include: "?(Dockerfile|action.yaml)" regex: false - - name: Commit and push - uses: stefanzweifel/git-auto-commit-action@v5 - with: - branch: master - tagging_message: "${{ needs.check-releases.outputs.firebase-tools-release }}" - commit_message: "Bump version to ${{ needs.check-releases.outputs.firebase-tools-release }}" + - name: Commit & Push changes + run: | + git config --local user.email "github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" + git commit -a -m "Bump firebase-tools to ${{ needs.check-releases.outputs.firebase-tools-release }}" + git tag -a ${{ needs.check-releases.outputs.firebase-tools-release }} -m "Bump firebase-tools to ${{ needs.check-releases.outputs.firebase-tools-release }}" + git push origin HEAD:${{ github.ref }} --tags From 83896f9679acb4746e64c90b89e524538c959e38 Mon Sep 17 00:00:00 2001 From: Luke Nelson Date: Wed, 15 Nov 2023 17:31:44 +0000 Subject: [PATCH 11/19] checkout current branch --- .github/workflows/check-release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/check-release.yml b/.github/workflows/check-release.yml index feb7600..23e24c2 100644 --- a/.github/workflows/check-release.yml +++ b/.github/workflows/check-release.yml @@ -54,6 +54,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + with: + ref: ${{ github.ref }} - name: Remove leading 'v' from version numbers run: | From f952251f66e9b40d211b411e0bb2cd612f743bb8 Mon Sep 17 00:00:00 2001 From: Luke Nelson Date: Wed, 15 Nov 2023 17:34:58 +0000 Subject: [PATCH 12/19] only run if files have been modified --- .github/workflows/check-release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/check-release.yml b/.github/workflows/check-release.yml index 23e24c2..722ce72 100644 --- a/.github/workflows/check-release.yml +++ b/.github/workflows/check-release.yml @@ -65,6 +65,7 @@ jobs: echo "FIREBASE_TOOLS_RELEASE=${FIREBASE_TOOLS_RELEASE#v}" >> $GITHUB_ENV - name: Bump version + id: bump-version uses: jacobtomlinson/gha-find-replace@v3 with: find: "${{ env.FIREBASE_ACTIONS_RELEASE }}" @@ -73,6 +74,7 @@ jobs: regex: false - name: Commit & Push changes + if: ${{ steps.bump-version.outputs.modifiedFiles > 0 }} run: | git config --local user.email "github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]" From d44b70f8e87cb6491646fedda760fcf93b8cff15 Mon Sep 17 00:00:00 2001 From: Luke Nelson Date: Wed, 15 Nov 2023 17:38:02 +0000 Subject: [PATCH 13/19] fix glob --- .github/workflows/check-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-release.yml b/.github/workflows/check-release.yml index 722ce72..716fc88 100644 --- a/.github/workflows/check-release.yml +++ b/.github/workflows/check-release.yml @@ -70,7 +70,7 @@ jobs: with: find: "${{ env.FIREBASE_ACTIONS_RELEASE }}" replace: "${{ env.FIREBASE_TOOLS_RELEASE }}" - include: "?(Dockerfile|action.yaml)" + include: "{Dockerfile,action.yaml}" regex: false - name: Commit & Push changes From 8daccc5dba945b26e03e19de5c138b79698d367f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 23 Nov 2023 17:46:31 +0000 Subject: [PATCH 14/19] Bump firebase-tools to v12.9.1 --- Dockerfile | 4 ++-- action.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 37be66c..7740ca8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM node:16.16.0-buster -LABEL version="12.9.0" +LABEL version="12.9.1" LABEL repository="https://github.com/w9jds/firebase-action" LABEL homepage="https://github.com/w9jds/firebase-action" LABEL maintainer="Jeremy Shore " @@ -13,7 +13,7 @@ LABEL com.github.actions.color="gray-dark" RUN apt update && apt-get install --no-install-recommends -y jq openjdk-11-jre && rm -rf /var/lib/apt/lists/*; RUN npm i -g npm@8.10.0 && npm cache clean --force; -RUN npm i -g firebase-tools@12.9.0 && npm cache clean --force; +RUN npm i -g firebase-tools@12.9.1 && npm cache clean --force; COPY LICENSE README.md / COPY "entrypoint.sh" "/entrypoint.sh" diff --git a/action.yaml b/action.yaml index 3f25038..e551072 100644 --- a/action.yaml +++ b/action.yaml @@ -12,4 +12,4 @@ outputs: runs: using: "docker" - image: "docker://w9jds/firebase-action:v12.9.0" + image: "docker://w9jds/firebase-action:v12.9.1" From ff6573bd8a0d5fac8e3634f283030dfbbbde8167 Mon Sep 17 00:00:00 2001 From: Luke Nelson Date: Thu, 23 Nov 2023 17:51:37 +0000 Subject: [PATCH 15/19] create a release --- .github/workflows/check-release.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/check-release.yml b/.github/workflows/check-release.yml index 716fc88..4f8d4ca 100644 --- a/.github/workflows/check-release.yml +++ b/.github/workflows/check-release.yml @@ -81,3 +81,15 @@ jobs: git commit -a -m "Bump firebase-tools to ${{ needs.check-releases.outputs.firebase-tools-release }}" git tag -a ${{ needs.check-releases.outputs.firebase-tools-release }} -m "Bump firebase-tools to ${{ needs.check-releases.outputs.firebase-tools-release }}" git push origin HEAD:${{ github.ref }} --tags + + - name: Create Release + id: create_release + uses: comnoco/create-release-action@v2.0.5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token + with: + tag_name: ${{ github.ref }} + release_name: firebase-tools ${{ github.ref }} + body: "Upgrade `firebase-tools` to ${{ needs.check-releases.outputs.firebase-tools-release }}" + draft: false + prerelease: false From f30431db14b13c4f0b4753bd9f0d26b76d62b89e Mon Sep 17 00:00:00 2001 From: Luke Nelson Date: Thu, 23 Nov 2023 17:55:49 +0000 Subject: [PATCH 16/19] User master banch and correct tag --- .github/workflows/check-release.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check-release.yml b/.github/workflows/check-release.yml index 4f8d4ca..a19e232 100644 --- a/.github/workflows/check-release.yml +++ b/.github/workflows/check-release.yml @@ -55,7 +55,7 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: - ref: ${{ github.ref }} + ref: "master" - name: Remove leading 'v' from version numbers run: | @@ -80,7 +80,7 @@ jobs: git config --local user.name "github-actions[bot]" git commit -a -m "Bump firebase-tools to ${{ needs.check-releases.outputs.firebase-tools-release }}" git tag -a ${{ needs.check-releases.outputs.firebase-tools-release }} -m "Bump firebase-tools to ${{ needs.check-releases.outputs.firebase-tools-release }}" - git push origin HEAD:${{ github.ref }} --tags + git push origin HEAD:master --tags - name: Create Release id: create_release @@ -88,8 +88,8 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token with: - tag_name: ${{ github.ref }} - release_name: firebase-tools ${{ github.ref }} - body: "Upgrade `firebase-tools` to ${{ needs.check-releases.outputs.firebase-tools-release }}" + tag_name: ${{ needs.check-releases.outputs.firebase-tools-release }} + release_name: firebase-tools ${{ needs.check-releases.outputs.firebase-tools-release }} + body: "Bump `firebase-tools` to ${{ needs.check-releases.outputs.firebase-tools-release }}" draft: false prerelease: false From 40d023650875864ef885f747e00ca504cf7f22bb Mon Sep 17 00:00:00 2001 From: Luke Nelson Date: Wed, 29 Nov 2023 16:17:20 +0000 Subject: [PATCH 17/19] Use variable for repository rather than hardcoded name --- .github/workflows/check-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-release.yml b/.github/workflows/check-release.yml index 716fc88..23dc586 100644 --- a/.github/workflows/check-release.yml +++ b/.github/workflows/check-release.yml @@ -18,7 +18,7 @@ jobs: uses: octokit/request-action@v2.x id: get_our_release with: - route: GET /repos/w9jds/firebase-action/releases/latest + route: GET /repos/${{ github.REPOSITORY }}/releases/latest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 60eb33e21063ef8f202cc19037b61adbaf334f96 Mon Sep 17 00:00:00 2001 From: Luke Nelson Date: Wed, 29 Nov 2023 16:20:33 +0000 Subject: [PATCH 18/19] Revert "Bump firebase-tools to v12.9.1" This reverts commit 8daccc5dba945b26e03e19de5c138b79698d367f. --- Dockerfile | 4 ++-- action.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7740ca8..37be66c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM node:16.16.0-buster -LABEL version="12.9.1" +LABEL version="12.9.0" LABEL repository="https://github.com/w9jds/firebase-action" LABEL homepage="https://github.com/w9jds/firebase-action" LABEL maintainer="Jeremy Shore " @@ -13,7 +13,7 @@ LABEL com.github.actions.color="gray-dark" RUN apt update && apt-get install --no-install-recommends -y jq openjdk-11-jre && rm -rf /var/lib/apt/lists/*; RUN npm i -g npm@8.10.0 && npm cache clean --force; -RUN npm i -g firebase-tools@12.9.1 && npm cache clean --force; +RUN npm i -g firebase-tools@12.9.0 && npm cache clean --force; COPY LICENSE README.md / COPY "entrypoint.sh" "/entrypoint.sh" diff --git a/action.yaml b/action.yaml index e551072..3f25038 100644 --- a/action.yaml +++ b/action.yaml @@ -12,4 +12,4 @@ outputs: runs: using: "docker" - image: "docker://w9jds/firebase-action:v12.9.1" + image: "docker://w9jds/firebase-action:v12.9.0" From 40d0dffe78981f0f66d1c704a64fb4ba8b60df20 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 8 Dec 2023 02:08:25 +0000 Subject: [PATCH 19/19] Bump firebase-tools to v13.0.1 --- Dockerfile | 4 ++-- action.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 37be66c..cd9940f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM node:16.16.0-buster -LABEL version="12.9.0" +LABEL version="13.0.1" LABEL repository="https://github.com/w9jds/firebase-action" LABEL homepage="https://github.com/w9jds/firebase-action" LABEL maintainer="Jeremy Shore " @@ -13,7 +13,7 @@ LABEL com.github.actions.color="gray-dark" RUN apt update && apt-get install --no-install-recommends -y jq openjdk-11-jre && rm -rf /var/lib/apt/lists/*; RUN npm i -g npm@8.10.0 && npm cache clean --force; -RUN npm i -g firebase-tools@12.9.0 && npm cache clean --force; +RUN npm i -g firebase-tools@13.0.1 && npm cache clean --force; COPY LICENSE README.md / COPY "entrypoint.sh" "/entrypoint.sh" diff --git a/action.yaml b/action.yaml index 3f25038..d4a77e3 100644 --- a/action.yaml +++ b/action.yaml @@ -12,4 +12,4 @@ outputs: runs: using: "docker" - image: "docker://w9jds/firebase-action:v12.9.0" + image: "docker://w9jds/firebase-action:v13.0.1"