From 39fb94c09bf0087575f1e6689c7fe8fe62b2aa3f Mon Sep 17 00:00:00 2001 From: fmacleal Date: Wed, 14 Aug 2024 12:44:15 +0200 Subject: [PATCH 1/2] Attempt to fix the release using a maintained action for it --- .github/workflows/ci.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 150bdc92..912df1ba 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -110,18 +110,18 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 60 if: github.ref == 'refs/heads/main' - + permissions: + packages: write + contents: write steps: - name: Checkout id: checkout uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - - name: Create GitHub Release - uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e # v1.1.4 + - name: Create a Release + uses: elgohr/Github-Release-Action@v5 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: rootstock-integration-tests@v1 - release_name: Release rootstock-integration-tests@v1 - draft: false - prerelease: false + title: Release rootstock-integration-tests@v1 \ No newline at end of file From 245974051f0584f68f263cc692fea94e69d8c1da Mon Sep 17 00:00:00 2001 From: fmacleal Date: Wed, 14 Aug 2024 13:09:09 +0200 Subject: [PATCH 2/2] Updating the release step to fix and be able to release the action --- .github/workflows/ci.yml | 25 +++++++++++------------ container-action/action.yml => action.yml | 2 +- container-action/README.md | 2 +- 3 files changed, 14 insertions(+), 15 deletions(-) rename container-action/action.yml => action.yml (96%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 912df1ba..831706ee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -93,7 +93,7 @@ jobs: - name: Test RIT Action id: test-rit-action - uses: ./container-action/ + uses: ./ with: rskj-branch: master powpeg-node-branch: master @@ -111,17 +111,16 @@ jobs: timeout-minutes: 60 if: github.ref == 'refs/heads/main' permissions: + contents: write packages: write - contents: write + steps: - - name: Checkout - id: checkout - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - - - name: Create a Release - uses: elgohr/Github-Release-Action@v5 - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: rootstock-integration-tests@v1 - title: Release rootstock-integration-tests@v1 \ No newline at end of file + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + with: + token: ${{ secrets.GITHUB_TOKEN }} + - name: Publish new version + run: | + git config --global user.email "no-reply@rootstocklabs.com" + git config --global user.name "RIT Release Automation" + git tag -fa v1 -m "Updating rootstock-integration-tests container action v1" + git push origin v1 --force \ No newline at end of file diff --git a/container-action/action.yml b/action.yml similarity index 96% rename from container-action/action.yml rename to action.yml index 657b65ea..8deb73f2 100644 --- a/container-action/action.yml +++ b/action.yml @@ -28,7 +28,7 @@ outputs: runs: using: docker - image: Dockerfile + image: ./container-action/Dockerfile env: INPUT_RSKJ_BRANCH: ${{ inputs.rskj-branch }} INPUT_POWPEG_NODE_BRANCH: ${{ inputs.powpeg-node-branch }} diff --git a/container-action/README.md b/container-action/README.md index f3ac048a..527f8cd8 100644 --- a/container-action/README.md +++ b/container-action/README.md @@ -52,7 +52,7 @@ The output message of the integration tests. It will be: ## Example usage ```yaml -uses: rootstock-integration-tests@v1 +uses: rsksmart/rootstock-integration-tests@v1 with: rskj-branch: master powpeg-node-branch: master